From 927eb31eb4bc0b69801a498f41c5b2af5bbc80f4 Mon Sep 17 00:00:00 2001 From: Eli Bendersky Date: Wed, 26 Mar 2014 21:11:34 +0000 Subject: [PATCH] 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 --- unittests/IR/InstructionsTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unittests/IR/InstructionsTest.cpp b/unittests/IR/InstructionsTest.cpp index 94065289e2e..39a7d77a107 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 Call(CallInst::Create(F, Args)); // Make sure iteration over a call's arguments works as expected. unsigned Idx = 0; -- 2.34.1