================
@@ -4204,7 +4238,9 @@ static Value *emitPointerArithmetic(CodeGenFunction &CGF,
                              PtrTy->getPointerAddressSpace()))
       return Ptr;
     // The inbounds GEP of null is valid iff the index is zero.
-    CodeGenFunction::SanitizerScope SanScope(&CGF);
+    auto CheckHandler = SanitizerHandler::PointerOverflow;
+    CodeGenFunction::SanitizerScope SanScope(
+        &CGF, {SanitizerKind::SO_PointerOverflow}, CheckHandler);
----------------
fmayer wrote:

Why didn't you pull the ordinal to a local here?

https://github.com/llvm/llvm-project/pull/141997
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to