|
@@ -1887,8 +1887,10 @@ ValueTrackerResult ValueTracker::getNextSourceImpl() {
|
|
|
assert(Def && "This method needs a valid definition");
|
|
|
|
|
|
assert(
|
|
|
- (DefIdx < Def->getDesc().getNumDefs() || Def->getDesc().isVariadic()) &&
|
|
|
- Def->getOperand(DefIdx).isDef() && "Invalid DefIdx");
|
|
|
+ (Def->getOperand(DefIdx).isDef() &&
|
|
|
+ (DefIdx < Def->getDesc().getNumDefs() || Def->getDesc().isVariadic()) ||
|
|
|
+ Def->getOperand(DefIdx).isImplicit()) &&
|
|
|
+ "Invalid DefIdx");
|
|
|
if (Def->isCopy())
|
|
|
return getNextSourceFromCopy();
|
|
|
if (Def->isBitcast())
|