Displaying 1 result from an estimated 1 matches for "a910bb13".
2014 Apr 09
2
[LLVMdev] Changing the value returned by sizeof
Hello,
I'm replacing a struct with another struct of a different size. A problem
arises when the following line occurs in the source code:
MyStruct *a = malloc(sizeof(a));
The 'sizeof(a)' is turned into a constant in the LLVM IR, resulting in the
wrong amount of memory being allocated for the struct. Is there any way to
find all the constants that have arisen from sizeof?
Thanks,