aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Path.cpp
diff options
context:
space:
mode:
authorAlexander Potapenko <glider@google.com>2018-03-19 10:03:47 +0000
committerAlexander Potapenko <glider@google.com>2018-03-19 10:03:47 +0000
commit014ff63f24c5c5b659fdc7ae0a627a2b508e2edc (patch)
treec0f38c35a2d0dfa23eb21ada1deeb868c63d9ade /llvm/lib/Support/Path.cpp
parente0bafb4359cd0f623e29f481f818a9a053080232 (diff)
downloadllvm-014ff63f24c5c5b659fdc7ae0a627a2b508e2edc.zip
llvm-014ff63f24c5c5b659fdc7ae0a627a2b508e2edc.tar.gz
llvm-014ff63f24c5c5b659fdc7ae0a627a2b508e2edc.tar.bz2
[MSan] Don't create zero offsets in getShadowPtrForArgument(). NFC
For MSan instrumentation with MS.ParamTLS and MS.ParamOriginTLS being TLS variables, the CreateAdd() with ArgOffset==0 is a no-op, because the compiler is able to fold the addition of 0. But for KMSAN, which receives ParamTLS and ParamOriginTLS from a call to the runtime library, this introduces a stray instruction which complicates reading/testing the IR. Differential revision: https://reviews.llvm.org/D44514 llvm-svn: 327829
Diffstat (limited to 'llvm/lib/Support/Path.cpp')
0 files changed, 0 insertions, 0 deletions