From 88cd3582b6cb70c0283e4c5d6d783114323a1ce1 Mon Sep 17 00:00:00 2001 From: Jeffrey Yasskin Date: Thu, 17 Dec 2009 21:02:39 +0000 Subject: 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 --- lib/CompilerDriver/CompilationGraph.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/CompilerDriver/CompilationGraph.cpp') diff --git a/lib/CompilerDriver/CompilationGraph.cpp b/lib/CompilerDriver/CompilationGraph.cpp index 3e6e050d68..56e5b9ce07 100644 --- a/lib/CompilerDriver/CompilationGraph.cpp +++ b/lib/CompilerDriver/CompilationGraph.cpp @@ -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; } } -- cgit v1.2.3-18-g5258