diff options
author | Chris Lattner <sabre@nondot.org> | 2005-10-19 04:12:14 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-10-19 04:12:14 +0000 |
commit | 2ac8510d68a0e3c83adb4b48e3369b7890d5decd (patch) | |
tree | 1a8b35d89db663bede50e3890a27462171203afa /utils/TableGen/DAGISelEmitter.h | |
parent | 4c59309f591064f2207df5a98f41ed2d504b52da (diff) | |
download | external_llvm-2ac8510d68a0e3c83adb4b48e3369b7890d5decd.zip external_llvm-2ac8510d68a0e3c83adb4b48e3369b7890d5decd.tar.gz external_llvm-2ac8510d68a0e3c83adb4b48e3369b7890d5decd.tar.bz2 |
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
Diffstat (limited to 'utils/TableGen/DAGISelEmitter.h')
-rw-r--r-- | utils/TableGen/DAGISelEmitter.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/TableGen/DAGISelEmitter.h b/utils/TableGen/DAGISelEmitter.h index 7fd0194..dbedbce 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; |