diff --git a/llvm/lib/VMCore/Value.cpp b/llvm/lib/VMCore/Value.cpp index 9f8f56e1a748..a61a1a024727 100644 --- a/llvm/lib/VMCore/Value.cpp +++ b/llvm/lib/VMCore/Value.cpp @@ -53,7 +53,7 @@ Value::~Value() { // a // if (!use_empty()) { - DOUT << "While deleting: " << *Ty << " %" << Name << "\n"; + DOUT << "While deleting: " << *Ty << " %" << getNameStr() << "\n"; for (use_iterator I = use_begin(), E = use_end(); I != E; ++I) DOUT << "Use still stuck around after Def is destroyed:" << **I << "\n";