mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-16 00:33:10 +00:00
Fix Name Access
Ask for the record name as a string explicitly to avoid a potential assert. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142504 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0615d6aac8
commit
e681d284f9
@ -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…
x
Reference in New Issue
Block a user