[PATCH] D86858: [OpenMP] Fix infinite loop in Sema::isOpenMPGlobalCapturedDecl()
Alexey Bataev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 1 05:46:16 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG2114f71aaa8d: [OpenMP] Fix infinite loop in Sema::isOpenMPGlobalCapturedDecl() (authored by nullptr.cpp, committed by ABataev).
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.289144.patch
Type: text/x-patch
Size: 419 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200901/fdf790a0/attachment.bin>
More information about the cfe-commits
mailing list