mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
Initialize ArgTypes directly instead of manually copying in the elements.
llvm-svn: 48195
This commit is contained in:
parent
7f8c939777
commit
0b00b3b786
@ -1050,10 +1050,7 @@ class FunctionValType {
|
||||
bool isVarArg;
|
||||
public:
|
||||
FunctionValType(const Type *ret, const std::vector<const Type*> &args,
|
||||
bool isVA) : RetTy(ret), isVarArg(isVA) {
|
||||
for (unsigned i = 0; i < args.size(); ++i)
|
||||
ArgTypes.push_back(args[i]);
|
||||
}
|
||||
bool isVA) : RetTy(ret), ArgTypes(args), isVarArg(isVA) {}
|
||||
|
||||
static FunctionValType get(const FunctionType *FT);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user