[PATCH] D86858: [OpenMP] Fix infinite loop in Sema::isOpenMPGlobalCapturedDecl()
Yang Fan via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 31 20:45:05 PDT 2020
nullptr.cpp updated this revision to Diff 289069.
nullptr.cpp added a comment.
trigger rebuild
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D86858/new/
https://reviews.llvm.org/D86858
Files:
clang/lib/Sema/SemaOpenMP.cpp
Index: clang/lib/Sema/SemaOpenMP.cpp
===================================================================
--- clang/lib/Sema/SemaOpenMP.cpp
+++ clang/lib/Sema/SemaOpenMP.cpp
@@ -2430,7 +2430,7 @@
DSAStackTy::DSAVarData DVar = DSAStack->getImplicitDSA(D, Level);
if (DVar.CKind != OMPC_shared)
return true;
- } while (Level >= 0);
+ } while (Level > 0);
}
}
return true;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86858.289069.patch
Type: text/x-patch
Size: 419 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200901/f039bedf/attachment.bin>
More information about the cfe-commits
mailing list