1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

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 07316ea195
commit a18594e2e4

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();