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:
parent
b94b18e4d2
commit
658a4b71b6
|
@ -1674,7 +1674,7 @@ void RecordVal::dump() const { errs() << *this; }
|
||||||
|
|
||||||
void RecordVal::print(raw_ostream &OS, bool PrintSem) const {
|
void RecordVal::print(raw_ostream &OS, bool PrintSem) const {
|
||||||
if (getPrefix()) OS << "field ";
|
if (getPrefix()) OS << "field ";
|
||||||
OS << *getType() << " " << getName();
|
OS << *getType() << " " << getNameInitAsString();
|
||||||
|
|
||||||
if (getValue())
|
if (getValue())
|
||||||
OS << " = " << *getValue();
|
OS << " = " << *getValue();
|
||||||
|
|
Loading…
Reference in New Issue