forked from OSchip/llvm-project
[ValueTracking] Simplify getKnowledgeValidInContext() call (NFC)
This accepts an ArrayRef, there's no need to create a SmallVector.
This commit is contained in:
parent
a316343e19
commit
a8e7d11aca
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue