================
@@ -565,8 +565,7 @@ Value *SafeStack::moveStaticAllocasToUnsafeStack(
 
   if (StackGuardSlot) {
     unsigned Offset = SSL.getObjectOffset(StackGuardSlot);
-    Value *Off =
-        IRB.CreatePtrAdd(BasePointer, ConstantInt::get(Int32Ty, -Offset));
+    Value *Off = IRB.CreatePtrAddWithSignedOffset(BasePointer, (int)-Offset);
----------------
antoniofrighetto wrote:

Nit, maybe:
```suggestion
    Value *Off = IRB.CreatePtrAddWithSignedOffset(BasePointer, 
-(int64_t)Offset);
```
(Same below.)

https://github.com/llvm/llvm-project/pull/238347
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to