aboutsummaryrefslogtreecommitdiff
path: root/bolt/lib/RuntimeLibs/RuntimeLibrary.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'bolt/lib/RuntimeLibs/RuntimeLibrary.cpp')
-rw-r--r--bolt/lib/RuntimeLibs/RuntimeLibrary.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/bolt/lib/RuntimeLibs/RuntimeLibrary.cpp b/bolt/lib/RuntimeLibs/RuntimeLibrary.cpp
index 09c4883..276b034 100644
--- a/bolt/lib/RuntimeLibs/RuntimeLibrary.cpp
+++ b/bolt/lib/RuntimeLibs/RuntimeLibrary.cpp
@@ -42,7 +42,7 @@ std::string RuntimeLibrary::getLibPath(StringRef ToolPath,
errs() << "BOLT-ERROR: library not found: " << LibPath << "\n";
exit(1);
}
- return std::string(LibPath.str());
+ return std::string(LibPath);
}
void RuntimeLibrary::loadLibrary(StringRef LibPath, BOLTLinker &Linker,