[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 15:39:45 PDT 2025


================
@@ -4734,7 +4770,16 @@ Value *ScalarExprEmitter::EmitShl(const BinOpInfo &Ops) {
     RHS = ConstrainShiftValue(Ops.LHS, RHS, "shl.mask");
   else if ((SanitizeBase || SanitizeExponent) &&
            isa<llvm::IntegerType>(Ops.LHS->getType())) {
-    CodeGenFunction::SanitizerScope SanScope(&CGF);
+    SmallVector<SanitizerKind::SanitizerOrdinal, 3> Kinds;
----------------
thurstond wrote:

Fixed in https://github.com/llvm/llvm-project/pull/141997/commits/2a816fe9d18f8e024a3d02ba15eb0e1827a1e980

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


More information about the cfe-commits mailing list