[LV] Remove unneeded cast to Operator [NFC]

This commit is contained in:
Philip Reames 2021-11-30 08:45:03 -08:00
parent 455a2b824d
commit c41b318423
1 changed files with 1 additions and 1 deletions

View File

@ -1200,7 +1200,7 @@ void InnerLoopVectorizer::collectPoisonGeneratingRecipes(
// load/store. Collect recipe if its underlying instruction has
// poison-generating flags.
Instruction *Instr = CurRec->getUnderlyingInstr();
if (Instr && cast<Operator>(Instr)->hasPoisonGeneratingFlags())
if (Instr && Instr->hasPoisonGeneratingFlags())
State.MayGeneratePoisonRecipes.insert(CurRec);
// Add new definitions to the worklist.