diff options
| author | Yury Gribov <y.gribov@samsung.com> | 2015-05-28 08:03:28 +0000 |
|---|---|---|
| committer | Yury Gribov <y.gribov@samsung.com> | 2015-05-28 08:03:28 +0000 |
| commit | 781bce2b948fd404ba58e4b4eb2c03a812955f55 (patch) | |
| tree | 179498dc7a45a127b90380026f6673dbd8fed9a3 /llvm | |
| parent | 98b18599a6b42250922231cfdfe2382c01ff7a14 (diff) | |
| download | bcm5719-llvm-781bce2b948fd404ba58e4b4eb2c03a812955f55.tar.gz bcm5719-llvm-781bce2b948fd404ba58e4b4eb2c03a812955f55.zip | |
[ASan] Fix previous commit. Patch by Max Ostapenko!
llvm-svn: 238403
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp index 7df489d99b2..39c1e41651f 100644 --- a/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp +++ b/llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp @@ -587,9 +587,9 @@ struct FunctionStackPoisoner : public InstVisitor<FunctionStackPoisoner> { void unpoisonDynamicAllocasBeforeInst(Instruction *InstBefore, Value *SavedStack) { IRBuilder<> IRB(InstBefore); - IRB.CreateCall2(AsanAllocasUnpoisonFunc, - IRB.CreateLoad(DynamicAllocaLayout), - IRB.CreatePtrToInt(SavedStack, IntptrTy)); + IRB.CreateCall(AsanAllocasUnpoisonFunc, + {IRB.CreateLoad(DynamicAllocaLayout), + IRB.CreatePtrToInt(SavedStack, IntptrTy)}); } // Unpoison dynamic allocas redzones. @@ -1991,7 +1991,7 @@ void FunctionStackPoisoner::handleDynamicAllocaCall(AllocaInst *AI) { ConstantInt::get(IntptrTy, Align)); // Insert __asan_alloca_poison call for new created alloca. - IRB.CreateCall2(AsanAllocaPoisonFunc, NewAddress, OldSize); + IRB.CreateCall(AsanAllocaPoisonFunc, {NewAddress, OldSize}); // Store the last alloca's address to DynamicAllocaLayout. We'll need this // for unpoisoning stuff. |

