[llvm] r204914 - IRTests/InstructionsTest.cpp: Avoid initializer list.

NAKAMURA Takumi geek4civic at gmail.com
Thu Mar 27 04:32:43 PDT 2014


Author: chapuni
Date: Thu Mar 27 06:32:41 2014
New Revision: 204914

URL: http://llvm.org/viewvc/llvm-project?rev=204914&view=rev
Log:
IRTests/InstructionsTest.cpp: Avoid initializer list.

Modified:
    llvm/trunk/unittests/IR/InstructionsTest.cpp

Modified: llvm/trunk/unittests/IR/InstructionsTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/IR/InstructionsTest.cpp?rev=204914&r1=204913&r2=204914&view=diff
==============================================================================
--- llvm/trunk/unittests/IR/InstructionsTest.cpp (original)
+++ llvm/trunk/unittests/IR/InstructionsTest.cpp Thu Mar 27 06:32:41 2014
@@ -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());





More information about the llvm-commits mailing list