bogner added inline comments.
================ Comment at: clang/lib/Sema/SemaDecl.cpp:12395-12398 + // TODO: This should probably just be llvm_unreachable and we should + // reject triples with random ABIs and such when we build the target. + // For now, crash. + llvm::report_fatal_error("Unhandled environment in triple"); ---------------- aaron.ballman wrote: > bogner wrote: > > aaron.ballman wrote: > > > Hmmm, is this going to be done as a follow-up relatively soon? > > > `report_fatal_error` isn't acceptable in lieu of actual diagnostic > > > reporting, so this should either be fixed in this patch or Really Soon > > > Afterâ„¢ it lands. > > Yeah, I'm happy to go and tackle that this week. Really I want an > > assert/unreachable here but since it is in fact reachable at the moment > > this seemed better as a temporary fix. Note that before this patch we just > > index out of bounds of an array and get all of the fun benefits of UB. > SGTM to do it as a follow-up -- this is better than the out of bounds > indexing! Follow up is here: https://reviews.llvm.org/D159103 Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D158803/new/ https://reviews.llvm.org/D158803 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits