[llvm-commits] [llvm] r142506 - /llvm/trunk/lib/TableGen/Record.cpp

David Greene greened at obbligato.org
Wed Oct 19 06:03:02 PDT 2011


Author: greened
Date: Wed Oct 19 08:03:02 2011
New Revision: 142506

URL: http://llvm.org/viewvc/llvm-project?rev=142506&view=rev
Log:
Fix Name Access

Ask for the Record name as a string explicitly to avoid a possible assert.

Modified:
    llvm/trunk/lib/TableGen/Record.cpp

Modified: llvm/trunk/lib/TableGen/Record.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/TableGen/Record.cpp?rev=142506&r1=142505&r2=142506&view=diff
==============================================================================
--- llvm/trunk/lib/TableGen/Record.cpp (original)
+++ llvm/trunk/lib/TableGen/Record.cpp Wed Oct 19 08:03:02 2011
@@ -1789,7 +1789,7 @@
   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";
 





More information about the llvm-commits mailing list