From 2ac8510d68a0e3c83adb4b48e3369b7890d5decd Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 19 Oct 2005 04:12:14 +0000 Subject: [PATCH] Fix some checking that was causing duraid to get a perplexing assertion instead of a happy error message git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23816 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/TableGen/DAGISelEmitter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/TableGen/DAGISelEmitter.h b/utils/TableGen/DAGISelEmitter.h index 7fd0194187c..dbedbce2d2f 100644 --- a/utils/TableGen/DAGISelEmitter.h +++ b/utils/TableGen/DAGISelEmitter.h @@ -226,7 +226,7 @@ namespace llvm { /// ContainsUnresolvedType - Return true if this tree contains any /// unresolved types. bool ContainsUnresolvedType() const { - if (Ty == MVT::LAST_VALUETYPE) return true; + if (!hasTypeSet()) return true; for (unsigned i = 0, e = getNumChildren(); i != e; ++i) if (getChild(i)->ContainsUnresolvedType()) return true; return false;