summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/PPCaching.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Lex/PPCaching.cpp')
-rw-r--r--clang/lib/Lex/PPCaching.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Lex/PPCaching.cpp b/clang/lib/Lex/PPCaching.cpp
index ae07ea9bcfd..45bdce32062 100644
--- a/clang/lib/Lex/PPCaching.cpp
+++ b/clang/lib/Lex/PPCaching.cpp
@@ -86,7 +86,7 @@ void Preprocessor::EnterCachingLexMode() {
const Token &Preprocessor::PeekAhead(unsigned N) {
assert(CachedLexPos + N > CachedTokens.size() && "Confused caching.");
ExitCachingLexMode();
- for (unsigned C = CachedLexPos + N - CachedTokens.size(); C > 0; --C) {
+ for (size_t C = CachedLexPos + N - CachedTokens.size(); C > 0; --C) {
CachedTokens.push_back(Token());
Lex(CachedTokens.back());
}
OpenPOWER on IntegriCloud