================
@@ -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);
----------------
thurstond wrote:
Fixed in
https://github.com/llvm/llvm-project/pull/141997/commits/2a816fe9d18f8e024a3d02ba15eb0e1827a1e980
https://github.com/llvm/llvm-project/pull/141997
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits