mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 19:42:54 +02:00
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
This commit is contained in:
parent
c825e072a3
commit
0f2dd60a58
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user