[clang] [ubsan] Add more -fsanitize-annotate-debug-info checks (PR #141997)

Thurston Dang via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 2 16:08:42 PDT 2025


================
@@ -2755,9 +2757,18 @@ CodeGenFunction::CGCapturedStmtInfo::~CGCapturedStmtInfo() { }
 CodeGenFunction::SanitizerScope::SanitizerScope(CodeGenFunction *CGF)
     : CGF(CGF) {
   assert(!CGF->IsSanitizerScope);
+  assert(!ApplyTrapDI);
   CGF->IsSanitizerScope = true;
 }
 
+CodeGenFunction::SanitizerScope::SanitizerScope(
+    CodeGenFunction *CGF, ArrayRef<SanitizerKind::SanitizerOrdinal> Ordinals,
+    SanitizerHandler Handler)
+    : SanitizerScope(CGF) {
----------------
thurstond wrote:

"error: an initializer for a delegating constructor must appear alone"

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


More information about the cfe-commits mailing list