From 64a390c1bc75eb55eeed3061df15dc581fd563e6 Mon Sep 17 00:00:00 2001 From: "Duncan P. N. Exon Smith" Date: Fri, 30 Apr 2021 15:16:36 -0700 Subject: [PATCH] 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 --- clang/lib/Frontend/CompilerInstance.cpp | 2 -- 1 file changed, 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 -- 2.7.4