summaryrefslogtreecommitdiff
path: root/lib/TableGen/Record.cpp
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2011-10-19 13:03:02 +0000
committerDavid Greene <greened@obbligato.org>2011-10-19 13:03:02 +0000
commita461c398267287d7a5d75fb3fa98d29cbfbb17f4 (patch)
tree791d8e60333b572ec5b440ed5804bd72c0bddf46 /lib/TableGen/Record.cpp
parent41effc6c15cb65bf486887b20b1dd419ad40f4af (diff)
downloadllvm-a461c398267287d7a5d75fb3fa98d29cbfbb17f4.tar.gz
llvm-a461c398267287d7a5d75fb3fa98d29cbfbb17f4.tar.bz2
llvm-a461c398267287d7a5d75fb3fa98d29cbfbb17f4.tar.xz
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@142506 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/TableGen/Record.cpp')
-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 f26d400f38..c92f1b2f61 100644
--- a/lib/TableGen/Record.cpp
+++ b/lib/TableGen/Record.cpp
@@ -1789,7 +1789,7 @@ raw_ostream &llvm::operator<<(raw_ostream &OS, const Record &R) {
if (!SC.empty()) {
OS << "\t//";
for (unsigned i = 0, e = SC.size(); i != e; ++i)
- OS << " " << SC[i]->getName();
+ OS << " " << SC[i]->getNameInitAsString();
}
OS << "\n";