diff options
author | Eli Bendersky <eliben@google.com> | 2014-03-26 21:11:34 +0000 |
---|---|---|
committer | Eli Bendersky <eliben@google.com> | 2014-03-26 21:11:34 +0000 |
commit | 927eb31eb4bc0b69801a498f41c5b2af5bbc80f4 (patch) | |
tree | 33d1040c5805f239e54f92a2e629045246e3e3c1 /unittests | |
parent | 1003e8fbfa2f436e88ef801cf4c3d33fc978e565 (diff) | |
download | llvm-927eb31eb4bc0b69801a498f41c5b2af5bbc80f4.tar.gz llvm-927eb31eb4bc0b69801a498f41c5b2af5bbc80f4.tar.bz2 llvm-927eb31eb4bc0b69801a498f41c5b2af5bbc80f4.tar.xz |
Fix bot breakage in InstructionsTest.
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
Diffstat (limited to 'unittests')
-rw-r--r-- | unittests/IR/InstructionsTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unittests/IR/InstructionsTest.cpp b/unittests/IR/InstructionsTest.cpp index 94065289e2..39a7d77a10 100644 --- a/unittests/IR/InstructionsTest.cpp +++ b/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; |