Re-enable consistency check for fixed LLVM versions.

This commit is contained in:
Frits van Bommel
2009-05-11 15:48:33 +02:00
parent 49a2924823
commit e4e07baf87
3 changed files with 12 additions and 5 deletions

View File

@@ -397,8 +397,10 @@ const Type* Analysis::getTypeFor(Value* typeinfo) const {
if (!node)
return NULL;
if (MD_GetNumElements(node) != TD_NumFields ||
(TD_Confirm >= 0 && MD_GetElement(node, TD_Confirm)->stripPointerCasts() != ti_global))
if (MD_GetNumElements(node) != TD_NumFields)
return NULL;
if (TD_Confirm >= 0 && (!MD_GetElement(node, TD_Confirm) ||
MD_GetElement(node, TD_Confirm)->stripPointerCasts() != ti_global))
return NULL;
return MD_GetElement(node, TD_Type)->getType();