From: Chris Lattner Date: Mon, 26 Mar 2012 19:11:51 +0000 (+0000) Subject: fix a failure path to print the right thing, part of PR12357 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ef18cd381cb8513a53baba2b0062159323b13056;p=oota-llvm.git fix a failure path to print the right thing, part of PR12357 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153457 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/TableGen/DAGISelMatcherGen.cpp b/utils/TableGen/DAGISelMatcherGen.cpp index 49ad956f886..2ac7b87e701 100644 --- a/utils/TableGen/DAGISelMatcherGen.cpp +++ b/utils/TableGen/DAGISelMatcherGen.cpp @@ -217,7 +217,7 @@ void MatcherGen::EmitLeafMatchCode(const TreePatternNode *N) { DefInit *DI = dynamic_cast(N->getLeafValue()); if (DI == 0) { - errs() << "Unknown leaf kind: " << *DI << "\n"; + errs() << "Unknown leaf kind: " << *N << "\n"; abort(); }