[clang] [Clang][OpenMP] fixed crash due to invalid binary expression in checking atomic semantics (PR #71480)

via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 6 23:04:52 PST 2023


sun-jacobi wrote:

Moreover, in the original implementation, the `checkStatement` return false if and only if there is no error in the statement. 
The question is whether `checkStatement` should consider a statement, which contains semantic errors not related to the atomic directive, as a `NoError` statement. 

In my opinion, for such a case, it should be considered as an invalid statement. 

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


More information about the cfe-commits mailing list