[ValueTracking] Simplify getKnowledgeValidInContext() call (NFC)

This accepts an ArrayRef, there's no need to create a SmallVector.
This commit is contained in:
Nikita Popov 2021-10-14 18:17:28 +02:00
parent a316343e19
commit a8e7d11aca
1 changed files with 1 additions and 2 deletions

View File

@ -5260,8 +5260,7 @@ static bool isGuaranteedNotToBeUndefOrPoison(const Value *V,
Dominator = Dominator->getIDom();
}
SmallVector<Attribute::AttrKind, 2> AttrKinds{Attribute::NoUndef};
if (getKnowledgeValidInContext(V, AttrKinds, CtxI, DT, AC))
if (getKnowledgeValidInContext(V, {Attribute::NoUndef}, CtxI, DT, AC))
return true;
return false;