summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorEli Bendersky <eliben@google.com>2014-03-26 21:11:34 +0000
committerEli Bendersky <eliben@google.com>2014-03-26 21:11:34 +0000
commitc35c4b3ddb4279460fb9f970fce9ba286e0b3be9 (patch)
tree7d2967bcab76cbc9f262fe46af07c4716a1c603b /llvm
parent69a6f0e79aa1bfc19ffa00d2ecf051cb777bd767 (diff)
downloadbcm5719-llvm-c35c4b3ddb4279460fb9f970fce9ba286e0b3be9.tar.gz
bcm5719-llvm-c35c4b3ddb4279460fb9f970fce9ba286e0b3be9.zip
Fix bot breakage in InstructionsTest.
Makes sure the Call dies before the Function llvm-svn: 204856
Diffstat (limited to 'llvm')
-rw-r--r--llvm/unittests/IR/InstructionsTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/IR/InstructionsTest.cpp b/llvm/unittests/IR/InstructionsTest.cpp
index 94065289e2e..39a7d77a107 100644
--- a/llvm/unittests/IR/InstructionsTest.cpp
+++ b/llvm/unittests/IR/InstructionsTest.cpp
@@ -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;
OpenPOWER on IntegriCloud