diff --git a/lib/TableGen/Record.cpp b/lib/TableGen/Record.cpp index 4f38e144d94..049148c3884 100644 --- a/lib/TableGen/Record.cpp +++ b/lib/TableGen/Record.cpp @@ -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();