projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0615d6a
)
Fix Name Access
author
David Greene
<greened@obbligato.org>
Wed, 19 Oct 2011 13:02:52 +0000
(13:02 +0000)
committer
David Greene
<greened@obbligato.org>
Wed, 19 Oct 2011 13:02:52 +0000
(13:02 +0000)
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
lib/TableGen/Record.cpp
patch
|
blob
|
history
diff --git
a/lib/TableGen/Record.cpp
b/lib/TableGen/Record.cpp
index 4f38e144d948fade7f76c1745037c314ee7907c4..049148c38840fa87476608768d96e5830001527a 100644
(file)
--- 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() << " " << getName
InitAsString
();
if (getValue())
OS << " = " << *getValue();