Fix some checking that was causing duraid to get a perplexing assertion

instead of a happy error message

llvm-svn: 23816
This commit is contained in:
Chris Lattner 2005-10-19 04:12:14 +00:00
parent 39538be7a5
commit cac2ff4864

View 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;