Have PathDiagnosticPiece::getString() return a StringRef instead

of a std::string.

llvm-svn: 163488
This commit is contained in:
Ted Kremenek 2012-09-10 06:19:53 +00:00
parent 9b9ee2a616
commit deb885a03f
1 changed files with 1 additions and 1 deletions

View File

@ -335,7 +335,7 @@ protected:
public:
virtual ~PathDiagnosticPiece();
const std::string& getString() const { return str; }
llvm::StringRef getString() const { return str; }
/// getDisplayHint - Return a hint indicating where the diagnostic should
/// be displayed by the PathDiagnosticConsumer.