[clang] [Clang] Add a NULL check (PR #77131)
Joseph Huber via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 16 05:53:10 PST 2024
================
@@ -21067,6 +21067,10 @@ Sema::ActOnOpenMPDependClause(const OMPDependClause::DependDataTy &Data,
ExprTy = ATy->getElementType();
else
ExprTy = BaseType->getPointeeType();
+ // bug 69200
+ if (ExprTy.isNull()) {
+ continue;
+ }
----------------
jhuber6 wrote:
```suggestion
if (ExprTy.isNull())
continue;
```
LLVM style omits braces on a single line block.
https://github.com/llvm/llvm-project/pull/77131
More information about the cfe-commits
mailing list