diff --git a/lib/VMCore/Type.cpp b/lib/VMCore/Type.cpp index 42c3770913d..6b884445ee8 100644 --- a/lib/VMCore/Type.cpp +++ b/lib/VMCore/Type.cpp @@ -1050,10 +1050,7 @@ class FunctionValType { bool isVarArg; public: FunctionValType(const Type *ret, const std::vector &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);