diff options
Diffstat (limited to 'contrib/llvm-project/llvm/lib/TableGen/TGLexer.cpp')
| -rw-r--r-- | contrib/llvm-project/llvm/lib/TableGen/TGLexer.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/contrib/llvm-project/llvm/lib/TableGen/TGLexer.cpp b/contrib/llvm-project/llvm/lib/TableGen/TGLexer.cpp index 2acac63ce843..25079fe33edb 100644 --- a/contrib/llvm-project/llvm/lib/TableGen/TGLexer.cpp +++ b/contrib/llvm-project/llvm/lib/TableGen/TGLexer.cpp @@ -1017,12 +1017,10 @@ void TGLexer::prepSkipToLineEnd() { } bool TGLexer::prepIsProcessingEnabled() { - for (auto I = PrepIncludeStack.back()->rbegin(), - E = PrepIncludeStack.back()->rend(); - I != E; ++I) { - if (!I->IsDefined) + for (const PreprocessorControlDesc &I : + llvm::reverse(*PrepIncludeStack.back())) + if (!I.IsDefined) return false; - } return true; } |
