[clang] [CIR] Add CIRGen for cir.unreachable and cir.trap (PR #151363)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 1 11:34:56 PDT 2025
================
@@ -1780,6 +1780,20 @@ LValue CIRGenFunction::emitLoadOfReferenceLValue(Address refAddr,
pointeeBaseInfo);
}
+void CIRGenFunction::emitTrap(mlir::Location loc, bool createNewBlock) {
----------------
andykaylor wrote:
Should the existing trap and unreachable emission in `emitImplicitReturn` be updated to use these functions? At least in the case of unreachable, the current code will miss the future sanitizer handling.
https://github.com/llvm/llvm-project/pull/151363
More information about the cfe-commits
mailing list