aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInstance.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2021-04-30 15:16:36 -0700
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2021-05-03 10:50:09 -0700
commit64a390c1bc75eb55eeed3061df15dc581fd563e6 (patch)
tree580d573b51b7635777285037569255a89b1000a3 /clang/lib/Frontend/CompilerInstance.cpp
parentf44c76d6e919641655615d62ea8b432175571a0b (diff)
downloadllvm-64a390c1bc75eb55eeed3061df15dc581fd563e6.zip
llvm-64a390c1bc75eb55eeed3061df15dc581fd563e6.tar.gz
llvm-64a390c1bc75eb55eeed3061df15dc581fd563e6.tar.bz2
Modules: Remove an extra early return, NFC
Remove an early return from an `else` block that's immediately followed by an equivalent early return after the `else` block. Differential Revision: https://reviews.llvm.org/D101671
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInstance.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp
index 4a765b9..bcf9f96 100644
--- a/clang/lib/Frontend/CompilerInstance.cpp
+++ b/clang/lib/Frontend/CompilerInstance.cpp
@@ -1890,8 +1890,6 @@ CompilerInstance::loadModule(SourceLocation ImportLoc,
return Result;
Module = Result;
MM.cacheModuleLoad(*Path[0].first, Module);
- if (!Module)
- return Module;
}
// If we never found the module, fail. Otherwise, verify the module and link