Skip to content

Commit

Permalink
Fix bot breakage in InstructionsTest.
Browse files Browse the repository at this point in the history
Makes sure the Call dies before the Function



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204856 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
eliben committed Mar 26, 2014
1 parent 1003e8f commit 927eb31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unittests/IR/InstructionsTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 927eb31

Please sign in to comment.