aboutsummaryrefslogtreecommitdiffstats
path: root/lib/TableGen
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2011-10-19 13:02:57 +0000
committerDavid Greene <greened@obbligato.org>2011-10-19 13:02:57 +0000
commit41effc6c15cb65bf486887b20b1dd419ad40f4af (patch)
tree3cf3b80723828d95b3e6cc9544306199d7aa330f /lib/TableGen
parente681d284f96333cef7774c6cc3dd862526af2282 (diff)
downloadexternal_llvm-41effc6c15cb65bf486887b20b1dd419ad40f4af.zip
external_llvm-41effc6c15cb65bf486887b20b1dd419ad40f4af.tar.gz
external_llvm-41effc6c15cb65bf486887b20b1dd419ad40f4af.tar.bz2
Fix Name Access
Ask for the Record name as a string explicitly to avoid a possible assert. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142505 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/TableGen')
-rw-r--r--lib/TableGen/Record.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/TableGen/Record.cpp b/lib/TableGen/Record.cpp
index 049148c..f26d400 100644
--- a/lib/TableGen/Record.cpp
+++ b/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()) {