mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-04 01:26:41 +00:00
Structs have elements not parameters. I'm surprised this ever compiled...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129888 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c8578948c9
commit
8c6d196210
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user