summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
diff options
context:
space:
mode:
authorGeorge Karpenkov <ekarpenkov@apple.com>2018-10-10 00:57:24 +0000
committerGeorge Karpenkov <ekarpenkov@apple.com>2018-10-10 00:57:24 +0000
commitea13613572db918380b21c34a755abc3531a39a4 (patch)
treed156e2ef3d7b830c52968ba8eb2e7e840ea0a51d /llvm/lib/Target/PowerPC/PPCISelLowering.cpp
parent285ae0c07b20b25725963e11f65fbb53b5110edc (diff)
downloadbcm5719-llvm-ea13613572db918380b21c34a755abc3531a39a4.tar.gz
bcm5719-llvm-ea13613572db918380b21c34a755abc3531a39a4.zip
[sancov] Generalize the code to get the previous instruction to multiple architectures
sancov subtracts one from the address to get the previous instruction, which makes sense on x86_64, but not on other platforms. This change ensures that the offset is correct for different platforms. The logic for computing the offset is copied from sanitizer_common. Differential Revision: https://reviews.llvm.org/D53039 llvm-svn: 344103
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCISelLowering.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud