diff options
author | Shoaib Meenai <smeenai@fb.com> | 2018-04-11 18:17:35 +0000 |
---|---|---|
committer | Shoaib Meenai <smeenai@fb.com> | 2018-04-11 18:17:35 +0000 |
commit | 34aa13169b5aed623c227191bb36fa118d766ba1 (patch) | |
tree | 9bede0c60bdd05f74664f1abe32092638434099c /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | |
parent | b24953bbfbc99b21d01ffaf673e11a44b4951b90 (diff) | |
download | bcm5719-llvm-34aa13169b5aed623c227191bb36fa118d766ba1.tar.gz bcm5719-llvm-34aa13169b5aed623c227191bb36fa118d766ba1.zip |
[CodeGen] Handle __func__ inside __finally
When we enter a __finally block, the CGF's CurCodeDecl will be null
(because CodeGenFunction::StartFunction is given an empty GlobalDecl for
a __finally block), and so the dyn_cast here will result in an assertion
failure. Change it to dyn_cast_or_null to handle this case.
Differential Revision: https://reviews.llvm.org/D45523
llvm-svn: 329836
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
0 files changed, 0 insertions, 0 deletions