[llvm] r204856 - Fix bot breakage in InstructionsTest.
Eli Bendersky
eliben at google.com
Wed Mar 26 14:11:35 PDT 2014
Author: eliben
Date: Wed Mar 26 16:11:34 2014
New Revision: 204856
URL: http://llvm.org/viewvc/llvm-project?rev=204856&view=rev
Log:
Fix bot breakage in InstructionsTest.
Makes sure the Call dies before the Function
Modified:
llvm/trunk/unittests/IR/InstructionsTest.cpp
Modified: llvm/trunk/unittests/IR/InstructionsTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/IR/InstructionsTest.cpp?rev=204856&r1=204855&r2=204856&view=diff
==============================================================================
--- llvm/trunk/unittests/IR/InstructionsTest.cpp (original)
+++ llvm/trunk/unittests/IR/InstructionsTest.cpp Wed Mar 26 16:11:34 2014
@@ -62,7 +62,7 @@ TEST(InstructionsTest, CallInst) {
Value *Args[] = {ConstantInt::get(Type::getInt8Ty(C), 20),
ConstantInt::get(Type::getInt32Ty(C), 9999),
ConstantInt::get(Type::getInt64Ty(C), 42)};
- CallInst *Call = CallInst::Create(F, Args);
+ std::unique_ptr<CallInst> Call(CallInst::Create(F, Args));
// Make sure iteration over a call's arguments works as expected.
unsigned Idx = 0;
More information about the llvm-commits
mailing list