diff options
author | Jun Zhang <jun@junz.org> | 2022-08-27 23:14:48 +0800 |
---|---|---|
committer | Jun Zhang <jun@junz.org> | 2022-08-27 23:14:48 +0800 |
commit | b9c2b6069ea7f3d253d88725c1993da463f39575 (patch) | |
tree | 59b83b205bec557fd929fd6d0e8f81c35fbabde7 /clang/lib/Basic/SourceManager.cpp | |
parent | a4f84f1b2e92ea79b70b9961049a1af7d9e1f2fa (diff) | |
download | llvm-b9c2b6069ea7f3d253d88725c1993da463f39575.zip llvm-b9c2b6069ea7f3d253d88725c1993da463f39575.tar.gz llvm-b9c2b6069ea7f3d253d88725c1993da463f39575.tar.bz2 |
Avoid else-if after return, NFC
Signed-off-by: Jun Zhang <jun@junz.org>
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
-rw-r--r-- | clang/lib/Basic/SourceManager.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/Basic/SourceManager.cpp b/clang/lib/Basic/SourceManager.cpp index 38545d1..24e4aef 100644 --- a/clang/lib/Basic/SourceManager.cpp +++ b/clang/lib/Basic/SourceManager.cpp @@ -1795,11 +1795,11 @@ void SourceManager::computeMacroArgsCache(MacroArgsMap &MacroArgsCache, if (Entry.getFile().NumCreatedFIDs) ID += Entry.getFile().NumCreatedFIDs - 1 /*because of next ++ID*/; continue; - } else if (IncludeLoc.isValid()) { - // If file was included but not from FID, there is no more files/macros - // that may be "contained" in this file. - return; } + // If file was included but not from FID, there is no more files/macros + // that may be "contained" in this file. + if (IncludeLoc.isValid()) + return; continue; } |