[clang] [Clang][OpenMP] Fix crash on `atomic` with an erroneous statement (PR #228914)

Alexey Bataev via cfe-commits cfe-commits at lists.llvm.org
Sun Oct 18 04:29:39 PDT 2026


https://github.com/alexey-bataev commented:

-  if (ErrorFound == NoError && E && X) {
+  if (ErrorFound == NoError && E && X && !E->containsErrors() &&
+      !X->containsErrors()) {


https://github.com/llvm/llvm-project/pull/228914


More information about the cfe-commits mailing list