/// Produce the hint for the given node. The node contains
/// information about the call for which the diagnostic can be generated.
- StringRef getCallStackMessage(const ExplodedNode *N) {
+ std::string getCallStackMessage(const ExplodedNode *N) {
if (CallStackHint)
return CallStackHint->getMessage(N);
return "";
E = CallStack.end(); I != E; ++I) {
PathDiagnosticCallPiece *CP = I->first;
const ExplodedNode *N = I->second;
- StringRef stackMsg = ep->getCallStackMessage(N);
+ std::string stackMsg = ep->getCallStackMessage(N);
// The last message on the path to final bug is the most important
// one. Since we traverse the path backwards, do not add the message