diff options
author | Nick Desaulniers <ndesaulniers@google.com> | 2021-12-28 12:48:30 -0800 |
---|---|---|
committer | Nick Desaulniers <ndesaulniers@google.com> | 2021-12-28 13:28:34 -0800 |
commit | cd284b7ac0615afc6e0f1a30da2777e361de27a3 (patch) | |
tree | 3eeb71195c7da794c2aada8a099ca2408f55862e /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | |
parent | 357c8031ff29299ad4b823074ff7fdda23654cc8 (diff) | |
download | llvm-cd284b7ac0615afc6e0f1a30da2777e361de27a3.zip llvm-cd284b7ac0615afc6e0f1a30da2777e361de27a3.tar.gz llvm-cd284b7ac0615afc6e0f1a30da2777e361de27a3.tar.bz2 |
[clang][ARM] re-use arm::isHardTPSupported for hardware TLS check
This conditional check for -mstack-protector-guard=tls got out of sync
with the conditional check for -mtp=cp15 by me in D114116, because I
forgot about the similar check added in D113026.
Re-use the code in arm::isHardTPSupported so that these aren't out of
sync.
Interestingly, our CI reported this when testing
-mstack-protector-guard=tls; it was only reproducible with Debian's LLVM
and not upstream LLVM due to this out of tree patch:
https://salsa.debian.org/pkg-llvm-team/llvm-toolchain/-/blob/snapshot/debian/patches/930008-arm.diff
Fixes: https://github.com/ClangBuiltLinux/linux/issues/1502
Reviewed By: ardb
Differential Revision: https://reviews.llvm.org/D116233
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
0 files changed, 0 insertions, 0 deletions