fix a failure path to print the right thing, part of PR12357

llvm-svn: 153457
This commit is contained in:
Chris Lattner 2012-03-26 19:11:51 +00:00
parent b13384d5f5
commit bf1b6e4fc5

View File

@ -217,7 +217,7 @@ void MatcherGen::EmitLeafMatchCode(const TreePatternNode *N) {
DefInit *DI = dynamic_cast<DefInit*>(N->getLeafValue());
if (DI == 0) {
errs() << "Unknown leaf kind: " << *DI << "\n";
errs() << "Unknown leaf kind: " << *N << "\n";
abort();
}