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
This commit is contained in:
Duncan P. N. Exon Smith 2021-04-30 15:16:36 -07:00
parent f44c76d6e9
commit 64a390c1bc

View 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