diff options
| author | Akira Hatanaka <ahatanaka@apple.com> | 2014-08-07 23:08:24 +0000 |
|---|---|---|
| committer | Akira Hatanaka <ahatanaka@apple.com> | 2014-08-07 23:08:24 +0000 |
| commit | 5acc58fcfb403d1638856133088727c4e1a22fce (patch) | |
| tree | 703dbd5fe012afcf1eb68ec66c210732c6c69da8 /llvm/lib/Object/ObjectFile.cpp | |
| parent | 80c8b2742fc6efa79f31d28359923b366a588277 (diff) | |
| download | llvm-5acc58fcfb403d1638856133088727c4e1a22fce.zip llvm-5acc58fcfb403d1638856133088727c4e1a22fce.tar.gz llvm-5acc58fcfb403d1638856133088727c4e1a22fce.tar.bz2 | |
[stack protector] Look through bitcasts to get global variable
__stack_chk_guard.
Handle the case where the pointer operand of the load instruction that loads the
stack guard is not a global variable but instead a bitcast.
%StackGuard = load i8** bitcast (i64** @__stack_chk_guard to i8**)
call void @llvm.stackprotector(i8* %StackGuard, i8** %StackGuardSlot)
Original test case provided by Ana Pazos.
This fixes PR20558.
llvm-svn: 215167
Diffstat (limited to 'llvm/lib/Object/ObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions
