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:
parent
07316ea195
commit
a18594e2e4
@ -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
Block a user