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 | e681d284f96333cef7774c6cc3dd862526af2282 (patch) | |
tree | 3b1937f33b89fd3c7f57fd5812816fd3c6f50a3a /lib | |
parent | 0615d6aac810059a37fbced0f315cce75476da49 (diff) | |
download | external_llvm-e681d284f96333cef7774c6cc3dd862526af2282.zip external_llvm-e681d284f96333cef7774c6cc3dd862526af2282.tar.gz external_llvm-e681d284f96333cef7774c6cc3dd862526af2282.tar.bz2 |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/TableGen/Record.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/TableGen/Record.cpp b/lib/TableGen/Record.cpp index 4f38e14..049148c 100644 --- a/lib/TableGen/Record.cpp +++ b/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(); |