Skip to content

Commit 03cba44

Browse files
[BOLT] Use SmallString::operator std::string (NFC)
1 parent f1cee6b commit 03cba44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bolt/lib/RuntimeLibs/RuntimeLibrary.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ std::string RuntimeLibrary::getLibPath(StringRef ToolPath,
4242
errs() << "BOLT-ERROR: library not found: " << LibPath << "\n";
4343
exit(1);
4444
}
45-
return std::string(LibPath.str());
45+
return std::string(LibPath);
4646
}
4747

4848
void RuntimeLibrary::loadLibrary(StringRef LibPath, BOLTLinker &Linker,

0 commit comments

Comments
 (0)