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?