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 | 5a1bec1ebbe8c4427a31930e6dd6cc81917fc378 (patch) | |
| tree | 79aea34e161f14b04e390a3319385fb5a1b032dc /lib/Bitcode | |
| parent | 805f0c5b16c2b545eb39bec4e5d029a0b270e64e (diff) | |
| download | external_llvm-5a1bec1ebbe8c4427a31930e6dd6cc81917fc378.zip external_llvm-5a1bec1ebbe8c4427a31930e6dd6cc81917fc378.tar.gz external_llvm-5a1bec1ebbe8c4427a31930e6dd6cc81917fc378.tar.bz2 | |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108568 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode')
0 files changed, 0 insertions, 0 deletions
