diff options
| author | David Greene <greened@obbligato.org> | 2011-10-19 13:02:52 +0000 | 
|---|---|---|
| committer | David Greene <greened@obbligato.org> | 2011-10-19 13:02:52 +0000 | 
| commit | 658a4b71b6307dee9b7ee4c712110984c1622b8f (patch) | |
| tree | 497c70167422eb25b84f9a89b5d8e9bd964ac5c6 | |
| parent | b94b18e4d2a2b5dd7e0c102c747403403f832e70 (diff) | |
| download | bcm5719-llvm-658a4b71b6307dee9b7ee4c712110984c1622b8f.tar.gz bcm5719-llvm-658a4b71b6307dee9b7ee4c712110984c1622b8f.zip  | |
Fix Name Access
Ask for the record name as a string explicitly to avoid a potential
assert.
llvm-svn: 142504
| -rw-r--r-- | llvm/lib/TableGen/Record.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/TableGen/Record.cpp b/llvm/lib/TableGen/Record.cpp index 4f38e144d94..049148c3884 100644 --- a/llvm/lib/TableGen/Record.cpp +++ b/llvm/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();  | 

