diff options
author | Teresa Johnson <tejohnson@google.com> | 2016-02-10 23:47:38 +0000 |
---|---|---|
committer | Teresa Johnson <tejohnson@google.com> | 2016-02-10 23:47:38 +0000 |
commit | 41806854cc4ba7495f4194d91666cc1becafb2c8 (patch) | |
tree | 62a002a97679e39859f43fd735ca569eeb1e93c1 /llvm/lib/Transforms/IPO/FunctionImport.cpp | |
parent | 36ce1b0157c306671a4868f8976bdcbc085417d4 (diff) | |
download | bcm5719-llvm-41806854cc4ba7495f4194d91666cc1becafb2c8.tar.gz bcm5719-llvm-41806854cc4ba7495f4194d91666cc1becafb2c8.zip |
Fix Windows bot failure in Transforms/FunctionImport/funcimport.ll
Make sure we split ":" from the end of the global function id (which
is <path>:<function> for local functions) instead of the beginning to
avoid splitting at the wrong place for Windows file paths that contain
a ":".
llvm-svn: 260469
Diffstat (limited to 'llvm/lib/Transforms/IPO/FunctionImport.cpp')
-rw-r--r-- | llvm/lib/Transforms/IPO/FunctionImport.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<StringRef, StringRef> Split = CalledFunctionName.split(":"); + std::pair<StringRef, StringRef> Split = CalledFunctionName.rsplit(':'); SGV = SrcModule.getNamedValue(Split.second); assert(SGV && "Can't find function to import in source module"); } |