diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp --- a/clang/lib/Frontend/CompilerInstance.cpp +++ b/clang/lib/Frontend/CompilerInstance.cpp @@ -1890,8 +1890,6 @@ 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