[clang] [clang][CodeGen] Added SanitizerHandler mapping, trap messages in debug info, and corresponding test cases. (PR #143758)

Dan Liew via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 23 07:29:17 PDT 2025


================
@@ -4059,8 +4154,16 @@ void CodeGenFunction::EmitTrapCheck(llvm::Value *Checked,
     auto Call = TrapBB->begin();
     assert(isa<llvm::CallInst>(Call) && "Expected call in trap BB");
 
-    Call->applyMergedLocation(Call->getDebugLoc(),
-                              Builder.getCurrentDebugLocation());
+    // Call->applyMergedLocation(Call->getDebugLoc(),
----------------
delcypher wrote:

Nit: The commented out code needs to be removed.

https://github.com/llvm/llvm-project/pull/143758


More information about the cfe-commits mailing list