Displaying 1 result from an estimated 1 matches for "longestmember".
2007 May 28
2
[LLVMdev] Problem in llvm gcc back-end
...le I testing some code, I found some problem on Union handling.
I've wrte following test code, and it has union assignment.
The code's output is
from pointerToUnion: chars mystring, length 64
from original: chars mystring, length 8000
It's caused by second char member(charlength) of LongestMember.
For union assignment, llvm-backend seems generates assigning each
member of largest union member. (I've checked it on llvm assembly
level..)
But sometimes there is padding between members and it's different for members.
So in my opinion you should handle union assignment as pseudo array...