diff options
author | Bill Wendling <isanbard@gmail.com> | 2010-07-16 22:51:10 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2010-07-16 22:51:10 +0000 |
commit | bf8370ff36b504dfecd0594568f97c7a1a895c62 (patch) | |
tree | a4c471a2f02d5f01b39fce4fe3cdd2ff746cddb6 /llvm/lib/Bitcode/Writer | |
parent | 8289f785695aa15912dda5b3cd2251d9bbba3414 (diff) | |
download | bcm5719-llvm-bf8370ff36b504dfecd0594568f97c7a1a895c62.tar.gz bcm5719-llvm-bf8370ff36b504dfecd0594568f97c7a1a895c62.zip |
Consider this function:
void foo() { __builtin_unreachable(); }
It will output the following on Darwin X86:
_func1:
Leh_func_begin0:
pushq %rbp
Ltmp0:
movq %rsp, %rbp
Ltmp1:
Leh_func_end0:
This prolog adds a new Call Frame Information (CFI) row to the FDE with an
address that is not within the address range of the code it describes -- part is
equal to the end of the function -- and therefore results in an invalid EH
frame. If we emit a nop in this situation, then the CFI row is now within the
address range.
llvm-svn: 108568
Diffstat (limited to 'llvm/lib/Bitcode/Writer')
0 files changed, 0 insertions, 0 deletions