summaryrefslogtreecommitdiff
path: root/unittests
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2014-03-27 11:32:41 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2014-03-27 11:32:41 +0000
commitda56c397583850d3dab029d2e8fd323cb10f1443 (patch)
treedd0e22b8cea4a989b551c9b8ff079b52bf0821bd /unittests
parent668c2aa51740da56f26a7488348362916fc77b2c (diff)
downloadllvm-da56c397583850d3dab029d2e8fd323cb10f1443.tar.gz
llvm-da56c397583850d3dab029d2e8fd323cb10f1443.tar.bz2
llvm-da56c397583850d3dab029d2e8fd323cb10f1443.tar.xz
IRTests/InstructionsTest.cpp: Avoid initializer list.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204914 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r--unittests/IR/InstructionsTest.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/unittests/IR/InstructionsTest.cpp b/unittests/IR/InstructionsTest.cpp
index e355d16d7e..e04006508b 100644
--- a/unittests/IR/InstructionsTest.cpp
+++ b/unittests/IR/InstructionsTest.cpp
@@ -54,10 +54,10 @@ TEST(InstructionsTest, ReturnInst) {
// for tests that need to refer to the function in some way.
class ModuleWithFunctionTest : public testing::Test {
protected:
- ModuleWithFunctionTest()
- : M(new Module("MyModule", Ctx)),
- FArgTypes{Type::getInt8Ty(Ctx), Type::getInt32Ty(Ctx),
- Type::getInt64Ty(Ctx)} {
+ ModuleWithFunctionTest() : M(new Module("MyModule", Ctx)) {
+ FArgTypes.push_back(Type::getInt8Ty(Ctx));
+ FArgTypes.push_back(Type::getInt32Ty(Ctx));
+ FArgTypes.push_back(Type::getInt64Ty(Ctx));
FunctionType *FTy =
FunctionType::get(Type::getVoidTy(Ctx), FArgTypes, false);
F = Function::Create(FTy, Function::ExternalLinkage, "", M.get());