mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-01 12:24:24 +00:00
Make Path use StringRef instead of std::string where possible.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91620 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -35,7 +35,7 @@ namespace llvmc {
|
||||
const std::string& LanguageMap::GetLanguage(const sys::Path& File) const {
|
||||
LanguageMap::const_iterator Lang = this->find(File.getSuffix());
|
||||
if (Lang == this->end())
|
||||
throw std::runtime_error("Unknown suffix: " + File.getSuffix());
|
||||
throw std::runtime_error(("Unknown suffix: " + File.getSuffix()).str());
|
||||
return Lang->second;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user