projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c857894
)
Structs have elements not parameters. I'm surprised this ever compiled...
author
Nick Lewycky
<nicholas@mxc.ca>
Wed, 20 Apr 2011 22:52:37 +0000
(22:52 +0000)
committer
Nick Lewycky
<nicholas@mxc.ca>
Wed, 20 Apr 2011 22:52:37 +0000
(22:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129888
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/Core.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/Core.cpp
b/lib/VMCore/Core.cpp
index 986b40395c68a252bb8316237fc399f1f4ed2ad9..b896ea9bb23783d0dafc95f142a3f46ec170f641 100644
(file)
--- a/
lib/VMCore/Core.cpp
+++ b/
lib/VMCore/Core.cpp
@@
-335,7
+335,7
@@
unsigned LLVMCountStructElementTypes(LLVMTypeRef StructTy) {
void LLVMGetStructElementTypes(LLVMTypeRef StructTy, LLVMTypeRef *Dest) {
StructType *Ty = unwrap<StructType>(StructTy);
- for (
FunctionType::param
_iterator I = Ty->element_begin(),
+ for (
StructType::element
_iterator I = Ty->element_begin(),
E = Ty->element_end(); I != E; ++I)
*Dest++ = wrap(*I);
}