[llvm-commits] [llvm] r142505 - /llvm/trunk/lib/TableGen/Record.cpp
David Greene
greened at obbligato.org
Wed Oct 19 06:02:57 PDT 2011
Author: greened
Date: Wed Oct 19 08:02:57 2011
New Revision: 142505
URL: http://llvm.org/viewvc/llvm-project?rev=142505&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=142505&r1=142504&r2=142505&view=diff
==============================================================================
--- llvm/trunk/lib/TableGen/Record.cpp (original)
+++ llvm/trunk/lib/TableGen/Record.cpp Wed Oct 19 08:02:57 2011
@@ -1770,7 +1770,7 @@
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<Init *> &TArgs = R.getTemplateArgs();
if (!TArgs.empty()) {
More information about the llvm-commits
mailing list