Initialize ArgTypes directly instead of manually copying in the elements.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48195 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman 2008-03-10 23:41:23 +00:00
parent f25275cb3c
commit 450e7c3c54

View File

@ -1050,10 +1050,7 @@ class FunctionValType {
bool isVarArg; bool isVarArg;
public: public:
FunctionValType(const Type *ret, const std::vector<const Type*> &args, FunctionValType(const Type *ret, const std::vector<const Type*> &args,
bool isVA) : RetTy(ret), isVarArg(isVA) { bool isVA) : RetTy(ret), ArgTypes(args), isVarArg(isVA) {}
for (unsigned i = 0; i < args.size(); ++i)
ArgTypes.push_back(args[i]);
}
static FunctionValType get(const FunctionType *FT); static FunctionValType get(const FunctionType *FT);