diff options
author | Kazu Hirata <kazu@google.com> | 2021-12-10 08:53:14 -0800 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2021-12-10 08:53:14 -0800 |
commit | 3dbcccab303a586791fb8bb2455dd15a7eda5477 (patch) | |
tree | 0b15e2198efe3e865297ec6697b75ca364034bd3 /llvm/lib/Support/SourceMgr.cpp | |
parent | 6a399bf4b3aa32a87fb04dd1deb05f0066810a05 (diff) | |
download | llvm-3dbcccab303a586791fb8bb2455dd15a7eda5477.zip llvm-3dbcccab303a586791fb8bb2455dd15a7eda5477.tar.gz llvm-3dbcccab303a586791fb8bb2455dd15a7eda5477.tar.bz2 |
[Support] Use range-based for loops (NFC)
Diffstat (limited to 'llvm/lib/Support/SourceMgr.cpp')
-rw-r--r-- | llvm/lib/Support/SourceMgr.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Support/SourceMgr.cpp b/llvm/lib/Support/SourceMgr.cpp index 89b7dc9..2eb2989b 100644 --- a/llvm/lib/Support/SourceMgr.cpp +++ b/llvm/lib/Support/SourceMgr.cpp @@ -292,8 +292,7 @@ SMDiagnostic SourceMgr::GetMessage(SMLoc Loc, SourceMgr::DiagKind Kind, // Convert any ranges to column ranges that only intersect the line of the // location. - for (unsigned i = 0, e = Ranges.size(); i != e; ++i) { - SMRange R = Ranges[i]; + for (SMRange R : Ranges) { if (!R.isValid()) continue; |