[flang-commits] [flang] [flang][cuda] Avoid crash by exiting the check if assignment is not usable (PR #89149)

Peter Klausler via flang-commits flang-commits at lists.llvm.org
Wed Apr 17 15:05:21 PDT 2024


================
@@ -488,6 +488,9 @@ void CUDAChecker::Enter(const parser::AssignmentStmt &x) {
   }
 
   const evaluate::Assignment *assign{semantics::GetAssignment(x)};
+  if (!assign)
----------------
klausler wrote:

Braces around `if` bodies, please.

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


More information about the flang-commits mailing list