IRTests/InstructionsTest.cpp: Avoid initializer list.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Thu, 27 Mar 2014 11:32:41 +0000 (11:32 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Thu, 27 Mar 2014 11:32:41 +0000 (11:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204914 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/IR/InstructionsTest.cpp

index e355d16d7e00d4c9a809188bfea40efde83689e9..e04006508bdf859aae787a9e22ce5f39cb1b3c01 100644 (file)
@@ -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());