Don't redundantly clear std::vector members in destructors.
[oota-llvm.git] / lib / VMCore / Type.cpp
index 42c3770913d024c6e34ad5c3ef966248876c2f54..6b884445ee8e787eec9205b3f191e1d83c7f7280 100644 (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);