[all-commits] [llvm/llvm-project] d5cc37: [flang] Fix crash under -fdebug-dump-all (#66224)
Peter Klausler via All-commits
all-commits at lists.llvm.org
Wed Sep 13 14:05:12 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d5cc372332fcf573d9182991705c58aa884e159f
https://github.com/llvm/llvm-project/commit/d5cc372332fcf573d9182991705c58aa884e159f
Author: Peter Klausler <35819229+klausler at users.noreply.github.com>
Date: 2023-09-13 (Wed, 13 Sep 2023)
Changed paths:
M flang/lib/Semantics/runtime-type-info.cpp
M flang/test/Driver/dump-all-bad.f90
Log Message:
-----------
[flang] Fix crash under -fdebug-dump-all (#66224)
The -fdebug-dump-all flag invokes runtime type information generation
even for a program with fatal semantic errors. This could cause a crash
on a failed CHECK(), since the type information table generator assumes
a correct program. Make it more resilient for a known fatal case. (But
if we hit many more of these, we should look into not generating the
runtime type information tables under this flag.)
More information about the All-commits
mailing list