summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
diff options
context:
space:
mode:
authorShoaib Meenai <smeenai@fb.com>2018-04-11 18:17:35 +0000
committerShoaib Meenai <smeenai@fb.com>2018-04-11 18:17:35 +0000
commit34aa13169b5aed623c227191bb36fa118d766ba1 (patch)
tree9bede0c60bdd05f74664f1abe32092638434099c /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
parentb24953bbfbc99b21d01ffaf673e11a44b4951b90 (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud