summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/TargetInstrInfo.cpp
diff options
context:
space:
mode:
authorJulian Lettner <jlettner@apple.com>2019-02-04 22:06:30 +0000
committerJulian Lettner <jlettner@apple.com>2019-02-04 22:06:30 +0000
commit29ac3a5b822ba8c097a3ae78d983cdb94da43dd4 (patch)
tree4aea78b3173c70621eaf5eca5014b55dc97d3541 /llvm/lib/CodeGen/TargetInstrInfo.cpp
parent1137fce9e9e5359bfca677d70f4af61bb79d21f7 (diff)
downloadbcm5719-llvm-29ac3a5b822ba8c097a3ae78d983cdb94da43dd4.tar.gz
bcm5719-llvm-29ac3a5b822ba8c097a3ae78d983cdb94da43dd4.zip
[SanitizerCoverage] Clang crashes if user declares `__sancov_lowest_stack` variable
Summary: If the user declares or defines `__sancov_lowest_stack` with an unexpected type, then `getOrInsertGlobal` inserts a bitcast and the following cast fails: ``` Constant *SanCovLowestStackConstant = M.getOrInsertGlobal(SanCovLowestStackName, IntptrTy); SanCovLowestStack = cast<GlobalVariable>(SanCovLowestStackConstant); ``` This variable is a SanitizerCoverage implementation detail and the user should generally never have a need to access it, so we emit an error now. rdar://problem/44143130 Reviewers: morehouse Differential Revision: https://reviews.llvm.org/D57633 llvm-svn: 353100
Diffstat (limited to 'llvm/lib/CodeGen/TargetInstrInfo.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud