The assert for a DISubrange's CountVarDIE to be available fails
when the dbg.value() has been optimized away for any reason.
Having the assert for that is a little heavy, so instead removing
it now in favor of not generating the 'count' expression.
Addresses http://llvm.org/PR36263 .
Why not:
if (auto *CV = SR->getCount().dyn_cast<DIVariable*>()) { if (DIE *CountVarDIE = getDIE(CV)) addDIEEntry(DW_Subrange, dwarf::DW_AT_count, *CountVarDIE); else // should this. case be handled? } else if (Count != -1) addUInt(DW_Subrange, dwarf::DW_AT_count, None, Count);