Skip to content

Commit f9b2478

Browse files
Add template arg to dyn_Cast
Signed-off-by: Mikhail R. Gadelha <[email protected]>
1 parent 7f799fa commit f9b2478

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/RISCV/RISCVISelLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3527,7 +3527,7 @@ static SDValue matchSplatAsGather(SDValue SplatVal, MVT VT, const SDLoc &DL,
35273527

35283528
// Check that we know Idx lies within VT
35293529
if (!TypeSize::isKnownLE(Vec.getValueSizeInBits(), VT.getSizeInBits())) {
3530-
auto *CIdx = dyn_cast(Idx);
3530+
auto *CIdx = dyn_cast<ConstantSDNode>(Idx);
35313531
if (!CIdx ||
35323532
CIdx->getZExtValue() >= VT.getVectorElementCount().getKnownMinValue())
35333533
return SDValue();

0 commit comments

Comments
 (0)