From 41806854cc4ba7495f4194d91666cc1becafb2c8 Mon Sep 17 00:00:00 2001 From: Teresa Johnson Date: Wed, 10 Feb 2016 23:47:38 +0000 Subject: 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 --- llvm/lib/Transforms/IPO/FunctionImport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Transforms/IPO/FunctionImport.cpp') diff --git a/llvm/lib/Transforms/IPO/FunctionImport.cpp b/llvm/lib/Transforms/IPO/FunctionImport.cpp index b3cdebb763f..89f3f9d4f48 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"); } -- cgit v1.2.3