[llvm-commits] [llvm] r48195 - /llvm/trunk/lib/VMCore/Type.cpp
Dan Gohman
gohman at apple.com
Mon Mar 10 16:41:23 PDT 2008
Author: djg
Date: Mon Mar 10 18:41:23 2008
New Revision: 48195
URL: http://llvm.org/viewvc/llvm-project?rev=48195&view=rev
Log:
Initialize ArgTypes directly instead of manually copying in the elements.
Modified:
llvm/trunk/lib/VMCore/Type.cpp
Modified: llvm/trunk/lib/VMCore/Type.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Type.cpp?rev=48195&r1=48194&r2=48195&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Type.cpp (original)
+++ llvm/trunk/lib/VMCore/Type.cpp Mon Mar 10 18:41:23 2008
@@ -1050,10 +1050,7 @@
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);
More information about the llvm-commits
mailing list