================
@@ -5023,6 +5024,26 @@ Value *ScalarExprEmitter::EmitSub(const BinOpInfo &op) {
if (CGF.getLangOpts().StablePointerSubtraction)
return Builder.CreateSDiv(diffInChars, divisor, "sub.ptr.div");
+
+ // If the unaligned-pointer-subtraction sanitizer is on, verify at runtime
----------------
kuroyukiasuna wrote:
Addressed.
https://github.com/llvm/llvm-project/pull/210635
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits