From: Duncan P. N. Exon Smith Date: Fri, 30 Apr 2021 22:16:36 +0000 (-0700) Subject: Modules: Remove an extra early return, NFC X-Git-Tag: llvmorg-14-init~7776 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=64a390c1bc75eb55eeed3061df15dc581fd563e6;p=platform%2Fupstream%2Fllvm.git 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 --- 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