MemRegion pretty-printing: Convert DeclName to a string to print out the actual
name of the tracked function.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70381 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Analysis/MemRegion.cpp b/lib/Analysis/MemRegion.cpp
index ad7e80d..81855ba 100644
--- a/lib/Analysis/MemRegion.cpp
+++ b/lib/Analysis/MemRegion.cpp
@@ -160,7 +160,7 @@
void CodeTextRegion::print(llvm::raw_ostream& os) const {
os << "code{";
if (isDeclared())
- os << getDecl()->getDeclName();
+ os << getDecl()->getDeclName().getAsString();
else
os << '$' << getSymbol();