diff --git a/llvm/lib/Transforms/IPO/FunctionImport.cpp b/llvm/lib/Transforms/IPO/FunctionImport.cpp index 320a1c916c4b..ce875a5ba8b8 100644 --- a/llvm/lib/Transforms/IPO/FunctionImport.cpp +++ b/llvm/lib/Transforms/IPO/FunctionImport.cpp @@ -264,10 +264,6 @@ static void exportGlobalInModule(const ModuleSummaryIndex &Index, return; // We found it in the current module, mark as exported ExportList.insert(GUID); - - auto GVS = dyn_cast(Summary); - if (!GVS) - return; } using EdgeInfo = std::pair;