When there is any compile error, clang still tries to compile as many code as
possible, therefore Scope can be nullptr here. However, we didn't check it
beforehand, causing compiler crash.
Fix #59944.
Differential D142233
[Clang][OpenMP] Bail out early if `Scope` is nullptr in case of any crash tianshilei1992 on Jan 20 2023, 9:32 AM. Authored by
Details When there is any compile error, clang still tries to compile as many code as Fix #59944.
Diff Detail
Event Timeline
Comment Actions It's been fixed by https://github.com/llvm/llvm-project/commit/b561c5c149467c98094c87c0e0d07c3b05f17780. Thanks. |
Maybe better to check it here to avoid too early exit?