Issue 137116
Summary [OpenACC] SemaOpenACC::CheckLinkClauseVarList may need additional checks for Var
Labels clang:frontend
Assignees erichkeane
Reporter shafik
    This was spotted by static anaylsis.

On this line:

https://github.com/llvm/llvm-project/blob/77fe6aaeaaf2b16e021675e92e543dafd18bbc0b/clang/lib/Sema/SemaOpenACCClause.cpp#L2099

`Var` is not being checked even though it is checked here:

https://github.com/llvm/llvm-project/blob/77fe6aaeaaf2b16e021675e92e543dafd18bbc0b/clang/lib/Sema/SemaOpenACCClause.cpp#L2089

and here:

https://github.com/llvm/llvm-project/blob/77fe6aaeaaf2b16e021675e92e543dafd18bbc0b/clang/lib/Sema/SemaOpenACCClause.cpp#L2110

This implies either that the null checks are not necessary or that a null check is missing. Either way one of these should be fixed.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to