Fix some checking that was causing duraid to get a perplexing assertion
[oota-llvm.git] / utils / TableGen / DAGISelEmitter.h
index 7fd0194187cf184a8ffde7a715061c60c4848b6c..dbedbce2d2fe951ca6ab1194ebacb7e7a42e1ecf 100644 (file)
@@ -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;