diff options
| author | David Greene <greened@obbligato.org> | 2011-10-19 13:02:57 +0000 |
|---|---|---|
| committer | David Greene <greened@obbligato.org> | 2011-10-19 13:02:57 +0000 |
| commit | 98be78aeea1c1013f265681fa4de162d52188700 (patch) | |
| tree | e0e568038330f5427456677f93179cbe7f163b2e /llvm/lib/TableGen | |
| parent | 658a4b71b6307dee9b7ee4c712110984c1622b8f (diff) | |
| download | bcm5719-llvm-98be78aeea1c1013f265681fa4de162d52188700.tar.gz bcm5719-llvm-98be78aeea1c1013f265681fa4de162d52188700.zip | |
Fix Name Access
Ask for the Record name as a string explicitly to avoid a possible
assert.
llvm-svn: 142505
Diffstat (limited to 'llvm/lib/TableGen')
| -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 049148c3884..f26d400f38b 100644 --- a/llvm/lib/TableGen/Record.cpp +++ b/llvm/lib/TableGen/Record.cpp @@ -1770,7 +1770,7 @@ void Record::resolveReferencesTo(const RecordVal *RV) { void Record::dump() const { errs() << *this; } raw_ostream &llvm::operator<<(raw_ostream &OS, const Record &R) { - OS << R.getName(); + OS << R.getNameInitAsString(); const std::vector<Init *> &TArgs = R.getTemplateArgs(); if (!TArgs.empty()) { |

