OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f25275c
)
Initialize ArgTypes directly instead of manually copying in the elements.
author
Dan Gohman
<gohman@apple.com>
Mon, 10 Mar 2008 23:41:23 +0000
(23:41 +0000)
committer
Dan Gohman
<gohman@apple.com>
Mon, 10 Mar 2008 23:41:23 +0000
(23:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48195
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/Type.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/Type.cpp
b/lib/VMCore/Type.cpp
index
42c3770
..
6b88444
100644
(file)
--- 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);