From e681d284f96333cef7774c6cc3dd862526af2282 Mon Sep 17 00:00:00 2001 From: David Greene Date: Wed, 19 Oct 2011 13:02:52 +0000 Subject: [PATCH] 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 --- lib/TableGen/Record.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/TableGen/Record.cpp b/lib/TableGen/Record.cpp index 4f38e144d94..049148c3884 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(); -- 2.34.1