diff options
| author | Jay Foad <jay.foad@gmail.com> | 2014-12-01 09:42:32 +0000 |
|---|---|---|
| committer | Jay Foad <jay.foad@gmail.com> | 2014-12-01 09:42:32 +0000 |
| commit | 1f0a44e6626f8ecb9814818f1c6f9738b447737f (patch) | |
| tree | d1cfc7aed84e0f78787c499b4739461e0c13828f /llvm/lib/MC/MCDisassembler/MCDisassembler.cpp | |
| parent | f3470cc979c7314e5d5d0cae16d2eb24f0cf11e0 (diff) | |
| download | bcm5719-llvm-1f0a44e6626f8ecb9814818f1c6f9738b447737f.tar.gz bcm5719-llvm-1f0a44e6626f8ecb9814818f1c6f9738b447737f.zip | |
[PowerPC] Fix unwind info with dynamic stack realignment
Summary:
PowerPC DWARF unwind info defined CFA as SP + offset even in a function
where the stack had been dynamically realigned. This clearly doesn't
work because the offset from SP to CFA is not a constant. Fix it by
defining CFA as BP instead.
This was causing the AddressSanitizer null_deref test to fail 50% of
the time, depending on whether SP happened to be 32-byte aligned on
entry to a particular function or not.
Reviewers: willschm, uweigand, hfinkel
Reviewed By: hfinkel
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D6410
llvm-svn: 222996
Diffstat (limited to 'llvm/lib/MC/MCDisassembler/MCDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions

