search for: globalb

Displaying 1 result from an estimated 1 matches for "globalb".

Did you mean: global
2005 Nov 01
2
[LLVMdev] Illegal Optimization(?): Combining empty type instances
...e other pass is removing them. I doubt if any real program relies on this behaviour, and there is a trivial work around. However, my program ran across this problem, so maybe it should be corrected. Example program: #include <stdio.h> struct Empty {}; struct Empty globalA; struct Empty globalB; int main( int argc, char* argv[] ) { struct Empty a; struct Empty b; printf( "%p %p\n", &a, &b ); printf( "%p %p\n", &globalA, &globalB ); return 0; } The expected output is that all four pointers will be unique and valid. With LLVM the output is: (...