llvm.org GIT mirror llvm / da56c39
IRTests/InstructionsTest.cpp: Avoid initializer list. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204914 91177308-0d34-0410-b5e6-96231b3b80d8 NAKAMURA Takumi 6 years ago
1 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
5353 // for tests that need to refer to the function in some way.
5454 class ModuleWithFunctionTest : public testing::Test {
5555 protected:
56 ModuleWithFunctionTest()
57 : M(new Module("MyModule", Ctx)),
58 FArgTypes{Type::getInt8Ty(Ctx), Type::getInt32Ty(Ctx),
59 Type::getInt64Ty(Ctx)} {
56 ModuleWithFunctionTest() : M(new Module("MyModule", Ctx)) {
57 FArgTypes.push_back(Type::getInt8Ty(Ctx));
58 FArgTypes.push_back(Type::getInt32Ty(Ctx));
59 FArgTypes.push_back(Type::getInt64Ty(Ctx));
6060 FunctionType *FTy =
6161 FunctionType::get(Type::getVoidTy(Ctx), FArgTypes, false);
6262 F = Function::Create(FTy, Function::ExternalLinkage, "", M.get());