diff options
author | Adrian Prantl <aprantl@apple.com> | 2018-11-09 00:26:15 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2018-11-09 00:26:15 +0000 |
commit | 009cc9b7cadc81b50127f14ccdb8ff10fccc1f00 (patch) | |
tree | 30f94257999d4221b16f9040ed84ea9c30e0981a /clang/lib/CodeGen/CGExprComplex.cpp | |
parent | f5b6d11cf226cd62af2cdd1f28c8d3da6c4dbd59 (diff) | |
download | bcm5719-llvm-009cc9b7cadc81b50127f14ccdb8ff10fccc1f00.tar.gz bcm5719-llvm-009cc9b7cadc81b50127f14ccdb8ff10fccc1f00.zip |
Fix a use-after-free introduced by r344915.
r344915 added a call to ApplyDebugLocation to the sanitizer check
function emitter. Some of the sanitizers are emitted in the function
epilogue though and the LexicalScopeStack is emptied out before. By
detecting this situation and early-exiting from ApplyDebugLocation the
fallback location is used, which is equivalent to the return location.
rdar://problem/45859802
llvm-svn: 346454
Diffstat (limited to 'clang/lib/CodeGen/CGExprComplex.cpp')
0 files changed, 0 insertions, 0 deletions