aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/SourceManager.cpp
diff options
context:
space:
mode:
authorJun Zhang <jun@junz.org>2022-08-27 23:14:48 +0800
committerJun Zhang <jun@junz.org>2022-08-27 23:14:48 +0800
commitb9c2b6069ea7f3d253d88725c1993da463f39575 (patch)
tree59b83b205bec557fd929fd6d0e8f81c35fbabde7 /clang/lib/Basic/SourceManager.cpp
parenta4f84f1b2e92ea79b70b9961049a1af7d9e1f2fa (diff)
downloadllvm-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.cpp8
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;
}