File tree 2 files changed +2
-2
lines changed
lib/Transforms/Instrumentation
test/Transforms/SafeStack
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -541,7 +541,7 @@ void SafeStack::moveDynamicAllocasToUnsafeStack(
541
541
if (DynamicTop)
542
542
IRB.CreateStore (NewTop, DynamicTop);
543
543
544
- Value *NewAI = IRB.CreateIntToPtr (SP , AI->getType ());
544
+ Value *NewAI = IRB.CreatePointerCast (NewTop , AI->getType ());
545
545
if (AI->hasName () && isa<Instruction>(NewAI))
546
546
NewAI->takeName (AI);
547
547
Original file line number Diff line number Diff line change 25
25
; CHECK-NEXT: %[[INTTOPTR:.*]] = inttoptr i64 %[[AND]] to i8*
26
26
; CHECK-NEXT: store i8* %[[INTTOPTR]], i8** @__safestack_unsafe_stack_ptr
27
27
; CHECK-NEXT: store i8* %[[INTTOPTR]], i8** %unsafe_stack_dynamic_ptr
28
- ; CHECK-NEXT: %[[ALLOCA:.*]] = inttoptr i64 %[[SUB ]] to i32*
28
+ ; CHECK-NEXT: %[[ALLOCA:.*]] = bitcast i8* %[[INTTOPTR ]] to i32*
29
29
%a = alloca i32 , i32 %size
30
30
31
31
; CHECK: setjmp
You can’t perform that action at this time.
0 commit comments