Fix Name Access

Ask for the record name as a string explicitly to avoid a potential
assert.

llvm-svn: 142504
This commit is contained in:
David Greene 2011-10-19 13:02:52 +00:00
parent b94b18e4d2
commit 658a4b71b6
1 changed files with 1 additions and 1 deletions

View File

@ -1674,7 +1674,7 @@ void RecordVal::dump() const { errs() << *this; }
void RecordVal::print(raw_ostream &OS, bool PrintSem) const {
if (getPrefix()) OS << "field ";
OS << *getType() << " " << getName();
OS << *getType() << " " << getNameInitAsString();
if (getValue())
OS << " = " << *getValue();