diff options
| author | NAKAMURA Takumi <geek4civic@gmail.com> | 2014-03-27 11:32:41 +0000 |
|---|---|---|
| committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2014-03-27 11:32:41 +0000 |
| commit | be8556d17ab05968846eed2970d19d276ab8255d (patch) | |
| tree | d6f9158e73d64b0a78bb2520876aa89e7928f3e1 | |
| parent | f81e5c0e50424f65ed60ba8de9578f6edc79dd5d (diff) | |
| download | bcm5719-llvm-be8556d17ab05968846eed2970d19d276ab8255d.tar.gz bcm5719-llvm-be8556d17ab05968846eed2970d19d276ab8255d.zip | |
IRTests/InstructionsTest.cpp: Avoid initializer list.
llvm-svn: 204914
| -rw-r--r-- | llvm/unittests/IR/InstructionsTest.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/unittests/IR/InstructionsTest.cpp b/llvm/unittests/IR/InstructionsTest.cpp index e355d16d7e0..e04006508bd 100644 --- a/llvm/unittests/IR/InstructionsTest.cpp +++ b/llvm/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()); |

