aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/InitPreprocessor.cpp
diff options
context:
space:
mode:
authorJason Molenda <jason@molenda.com>2023-01-04 13:48:10 -0800
committerJason Molenda <jason@molenda.com>2023-01-04 13:51:26 -0800
commitda4e82753f3130ca2ff973ad90092ad1c035038a (patch)
tree9c32f4bd2816420a79091fce0d6460b849f2262d /clang/lib/Frontend/InitPreprocessor.cpp
parent7cf99347d4f4341b2f8a53eaaed6f0e137b30869 (diff)
downloadllvm-da4e82753f3130ca2ff973ad90092ad1c035038a.zip
llvm-da4e82753f3130ca2ff973ad90092ad1c035038a.tar.gz
llvm-da4e82753f3130ca2ff973ad90092ad1c035038a.tar.bz2
Don't read off end of GPR register array to access fp/sp/lr/pc
The arm64 register context on Darwin has the 29 general purpose registers, then pc/sp/lr/fp with different field names depending on compile-time flags. Instead of accessing beyond the end of the uint64_t[29] array, and upsetting the sanitizers, access those registers correctly with the correct name. Fixes a test failure on the ASAN CI bot, currently being skipped, in TestEarlyProcessLaunch.py. Differential Revision: https://reviews.llvm.org/D140067 rdar://103359354
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions