[llvm] r238403 - [ASan] Fix previous commit. Patch by Max Ostapenko!

Yury Gribov y.gribov at samsung.com
Thu May 28 01:03:29 PDT 2015


Author: ygribov
Date: Thu May 28 03:03:28 2015
New Revision: 238403

URL: http://llvm.org/viewvc/llvm-project?rev=238403&view=rev
Log:
[ASan] Fix previous commit. Patch by Max Ostapenko!

Modified:
    llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp

Modified: llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp?rev=238403&r1=238402&r2=238403&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp (original)
+++ llvm/trunk/lib/Transforms/Instrumentation/AddressSanitizer.cpp Thu May 28 03:03:28 2015
@@ -587,9 +587,9 @@ struct FunctionStackPoisoner : public In
   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::handleDynami
                                     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.





More information about the llvm-commits mailing list