Skip to content

Commit 685c862

Browse files
fhahngithub-actions[bot]
authored andcommitted
Automerge: [VPlan] Use cast<VPRecipeBase> in verifier (NFC).
All users of VPValue must be a VPRecipeBase, use cast.
2 parents 9ba5509 + 6338bde commit 685c862

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Vectorize/VPlanVerifier.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ bool VPlanVerifier::verifyVPBasicBlock(const VPBasicBlock *VPBB) {
206206
}
207207

208208
for (const VPUser *U : V->users()) {
209-
auto *UI = dyn_cast<VPRecipeBase>(U);
209+
auto *UI = cast<VPRecipeBase>(U);
210210
// TODO: check dominance of incoming values for phis properly.
211211
if (!UI ||
212212
isa<VPHeaderPHIRecipe, VPWidenPHIRecipe, VPPredInstPHIRecipe>(UI))

0 commit comments

Comments
 (0)