From: David Greene Date: Wed, 19 Oct 2011 13:02:57 +0000 (+0000) Subject: Fix Name Access X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=41effc6c15cb65bf486887b20b1dd419ad40f4af;p=oota-llvm.git 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 --- diff --git a/lib/TableGen/Record.cpp b/lib/TableGen/Record.cpp index 049148c3884..f26d400f38b 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 &TArgs = R.getTemplateArgs(); if (!TArgs.empty()) {