StaticAnalyzer: Fix abuse of StringRef in r152962.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152982 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/StaticAnalyzer/Core/BugReporter.cpp b/lib/StaticAnalyzer/Core/BugReporter.cpp
index 363a6df..67dfcf5 100644
--- a/lib/StaticAnalyzer/Core/BugReporter.cpp
+++ b/lib/StaticAnalyzer/Core/BugReporter.cpp
@@ -395,7 +395,7 @@
                                      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