diff options
author | Dan Gohman <gohman@apple.com> | 2008-03-10 23:41:23 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-03-10 23:41:23 +0000 |
commit | 2f3648b2618a56af44b514f8433eddd8c5bfeb19 (patch) | |
tree | 06078882b4aca1b5f127f7839e860792f7807995 | |
parent | 830d86cab8df19417e9dba2675ccd2720c15b023 (diff) | |
download | bcm5719-llvm-2f3648b2618a56af44b514f8433eddd8c5bfeb19.tar.gz bcm5719-llvm-2f3648b2618a56af44b514f8433eddd8c5bfeb19.zip |
Initialize ArgTypes directly instead of manually copying in the elements.
llvm-svn: 48195
-rw-r--r-- | llvm/lib/VMCore/Type.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/VMCore/Type.cpp b/llvm/lib/VMCore/Type.cpp index 42c3770913d..6b884445ee8 100644 --- a/llvm/lib/VMCore/Type.cpp +++ b/llvm/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); |