mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-19 14:23:13 +01:00
Work around an LLVM bug by not referring to globals from metadata. This was
only used for consistency checking anyway. For the LLVM bug, see http://llvm.org/PR4180 / http://llvm.org/PR4046
This commit is contained in:
@@ -347,7 +347,7 @@ const Type* Analysis::getTypeFor(Value* typeinfo) const {
|
||||
return NULL;
|
||||
|
||||
if (node->getNumOperands() != TD_NumFields ||
|
||||
node->getOperand(TD_Confirm)->stripPointerCasts() != ti_global)
|
||||
(TD_Confirm >= 0 && node->getOperand(TD_Confirm)->stripPointerCasts() != ti_global))
|
||||
return NULL;
|
||||
|
||||
return node->getOperand(TD_Type)->getType();
|
||||
|
||||
Reference in New Issue
Block a user