mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
IRTests/InstructionsTest.cpp: Avoid initializer list.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204914 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -54,10 +54,10 @@ TEST(InstructionsTest, ReturnInst) {
|
|||||||
// for tests that need to refer to the function in some way.
|
// for tests that need to refer to the function in some way.
|
||||||
class ModuleWithFunctionTest : public testing::Test {
|
class ModuleWithFunctionTest : public testing::Test {
|
||||||
protected:
|
protected:
|
||||||
ModuleWithFunctionTest()
|
ModuleWithFunctionTest() : M(new Module("MyModule", Ctx)) {
|
||||||
: M(new Module("MyModule", Ctx)),
|
FArgTypes.push_back(Type::getInt8Ty(Ctx));
|
||||||
FArgTypes{Type::getInt8Ty(Ctx), Type::getInt32Ty(Ctx),
|
FArgTypes.push_back(Type::getInt32Ty(Ctx));
|
||||||
Type::getInt64Ty(Ctx)} {
|
FArgTypes.push_back(Type::getInt64Ty(Ctx));
|
||||||
FunctionType *FTy =
|
FunctionType *FTy =
|
||||||
FunctionType::get(Type::getVoidTy(Ctx), FArgTypes, false);
|
FunctionType::get(Type::getVoidTy(Ctx), FArgTypes, false);
|
||||||
F = Function::Create(FTy, Function::ExternalLinkage, "", M.get());
|
F = Function::Create(FTy, Function::ExternalLinkage, "", M.get());
|
||||||
|
Reference in New Issue
Block a user