[LLVMbugs] [Bug 5789] totally empty .o file generated with -fomit-frame-pointer
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Tue Dec 15 10:31:30 PST 2009
http://llvm.org/bugs/show_bug.cgi?id=5789
Chris Lattner <clattner at apple.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Chris Lattner <clattner at apple.com> 2009-12-15 12:31:29 ---
The compiler is right. You're loading through an undefined pointer, which is
undefined behavior. It has realized that your function is not reachable, so it
deletes the body. If you use '-emit-llvm -S' you'll see that it has an
'unreachable' instruction in the entry of the llvm ir. The .s file probably
just has a label for the function.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list