aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-03-10 23:41:23 +0000
committerDan Gohman <gohman@apple.com>2008-03-10 23:41:23 +0000
commit450e7c3c54ec6bf54230c91dcbb1d1638746e316 (patch)
tree295e27ebc7b4b8cf989df73495c6ad059d1bdab2
parentf25275cb3c930b579707e33c22c1e1c5682b89d3 (diff)
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
-rw-r--r--lib/VMCore/Type.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/VMCore/Type.cpp b/lib/VMCore/Type.cpp
index 42c3770913..6b884445ee 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<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);