From: Teresa Johnson Date: Wed, 10 Feb 2016 23:47:38 +0000 (+0000) Subject: Fix Windows bot failure in Transforms/FunctionImport/funcimport.ll X-Git-Tag: llvmorg-3.9.0-rc1~14500 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=41806854cc4ba7495f4194d91666cc1becafb2c8;p=platform%2Fupstream%2Fllvm.git Fix Windows bot failure in Transforms/FunctionImport/funcimport.ll Make sure we split ":" from the end of the global function id (which is : for local functions) instead of the beginning to avoid splitting at the wrong place for Windows file paths that contain a ":". llvm-svn: 260469 --- diff --git a/llvm/lib/Transforms/IPO/FunctionImport.cpp b/llvm/lib/Transforms/IPO/FunctionImport.cpp index b3cdebb..89f3f9d 100644 --- a/llvm/lib/Transforms/IPO/FunctionImport.cpp +++ b/llvm/lib/Transforms/IPO/FunctionImport.cpp @@ -252,7 +252,7 @@ GetImportList(Module &DestModule, // source file name prepended for functions that were originally local // in the source module. Strip any prepended name to recover the original // name in the source module. - std::pair Split = CalledFunctionName.split(":"); + std::pair Split = CalledFunctionName.rsplit(':'); SGV = SrcModule.getNamedValue(Split.second); assert(SGV && "Can't find function to import in source module"); }