mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-23 02:29:18 +00:00
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
This commit is contained in:
parent
4c59309f59
commit
2ac8510d68
@ -226,7 +226,7 @@ namespace llvm {
|
|||||||
/// ContainsUnresolvedType - Return true if this tree contains any
|
/// ContainsUnresolvedType - Return true if this tree contains any
|
||||||
/// unresolved types.
|
/// unresolved types.
|
||||||
bool ContainsUnresolvedType() const {
|
bool ContainsUnresolvedType() const {
|
||||||
if (Ty == MVT::LAST_VALUETYPE) return true;
|
if (!hasTypeSet()) return true;
|
||||||
for (unsigned i = 0, e = getNumChildren(); i != e; ++i)
|
for (unsigned i = 0, e = getNumChildren(); i != e; ++i)
|
||||||
if (getChild(i)->ContainsUnresolvedType()) return true;
|
if (getChild(i)->ContainsUnresolvedType()) return true;
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user