forked from OSchip/llvm-project
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 {
|
||||
if (getPrefix()) OS << "field ";
|
||||
OS << *getType() << " " << getName();
|
||||
OS << *getType() << " " << getNameInitAsString();
|
||||
|
||||
if (getValue())
|
||||
OS << " = " << *getValue();
|
||||
|
|
Loading…
Reference in New Issue