Displaying 1 result from an estimated 1 matches for "88b93709".
Did you mean:
8.393709
2011 Jan 07
1
[LLVMdev] Problem returning structures by value from C
...ucture definition and prototypes for functions:
%0 = type { double, i32 }
declare %0 @set()
declare void @dump(%0)
So the question is: why the structure data is smashed after this code?
%a = call %0 @set()
call void @dump(%0 %a)
Output:
#set, 00000000 00000000 03000000
#dump, 00000000 0000f8ff 88b93709
Is there any way to return structure from C to LLVM by value?