Initialize ArgTypes directly instead of manually copying in the elements.

llvm-svn: 48195
This commit is contained in:
Dan Gohman 2008-03-10 23:41:23 +00:00
parent 830d86cab8
commit 2f3648b261

View File

@ -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);