aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic
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 /clang/lib/Basic
parent285ae0c07b20b25725963e11f65fbb53b5110edc (diff)
downloadllvm-ea13613572db918380b21c34a755abc3531a39a4.zip
llvm-ea13613572db918380b21c34a755abc3531a39a4.tar.gz
llvm-ea13613572db918380b21c34a755abc3531a39a4.tar.bz2
[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 'clang/lib/Basic')
0 files changed, 0 insertions, 0 deletions