[clang] 45d6792 - [clang][OpenMP] Fix signed v unsigned comparison
Krzysztof Parzyszek via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 7 07:15:43 PDT 2025
Author: Krzysztof Parzyszek
Date: 2025-07-07T09:15:10-05:00
New Revision: 45d679218aebdac5c9818be211d8e3a517c944c3
URL: https://github.com/llvm/llvm-project/commit/45d679218aebdac5c9818be211d8e3a517c944c3
DIFF: https://github.com/llvm/llvm-project/commit/45d679218aebdac5c9818be211d8e3a517c944c3.diff
LOG: [clang][OpenMP] Fix signed v unsigned comparison
This should unbreak
https://lab.llvm.org/buildbot/#/builders/51/builds/19309
Added:
Modified:
clang/lib/Parse/ParseOpenMP.cpp
Removed:
################################################################################
diff --git a/clang/lib/Parse/ParseOpenMP.cpp b/clang/lib/Parse/ParseOpenMP.cpp
index 0fb3c847e2ca7..4c8a1f97d4b1f 100644
--- a/clang/lib/Parse/ParseOpenMP.cpp
+++ b/clang/lib/Parse/ParseOpenMP.cpp
@@ -65,7 +65,7 @@ static OpenMPDirectiveKind checkOpenMPDirectiveName(Parser &P,
assert(D == Kind && "Directive kind mismatch");
// Ignore the case Version > VR.Max: In OpenMP 6.0 all prior spellings
// are explicitly allowed.
- if (Version < VR.Min)
+ if (static_cast<int>(Version) < VR.Min)
P.Diag(Loc, diag::warn_omp_future_directive_spelling) << Name;
return Kind;
More information about the cfe-commits
mailing list