Skip to content

Commit 45d6792

Browse files
committed
[clang][OpenMP] Fix signed v unsigned comparison
This should unbreak https://lab.llvm.org/buildbot/#/builders/51/builds/19309
1 parent fa859ed commit 45d6792

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Parse/ParseOpenMP.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ static OpenMPDirectiveKind checkOpenMPDirectiveName(Parser &P,
6565
assert(D == Kind && "Directive kind mismatch");
6666
// Ignore the case Version > VR.Max: In OpenMP 6.0 all prior spellings
6767
// are explicitly allowed.
68-
if (Version < VR.Min)
68+
if (static_cast<int>(Version) < VR.Min)
6969
P.Diag(Loc, diag::warn_omp_future_directive_spelling) << Name;
7070

7171
return Kind;

0 commit comments

Comments
 (0)