Modules: Remove an extra early return, NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 30 Apr 2021 22:16:36 +0000 (15:16 -0700)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 3 May 2021 17:50:09 +0000 (10:50 -0700)
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

clang/lib/Frontend/CompilerInstance.cpp

index 4a765b9..bcf9f96 100644 (file)
@@ -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