From 2ab0148c140dc54efea111b50b1650b7e3bdbfeb Mon Sep 17 00:00:00 2001 From: Sanjay Patel Date: Tue, 26 Oct 2021 08:10:34 -0400 Subject: [PATCH] [x86] use cast instead of dyn_cast for unchecked usage; NFC This was noted as an independent clean-up in D112464. --- llvm/lib/Target/X86/X86ISelLowering.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp index 0ae7bad2bcee..ff83813f29c0 100644 --- a/llvm/lib/Target/X86/X86ISelLowering.cpp +++ b/llvm/lib/Target/X86/X86ISelLowering.cpp @@ -5050,7 +5050,7 @@ static bool MayFoldLoadIntoBroadcastFromMem(SDValue Op, MVT EltVT, // We can not replace a wide volatile load with a broadcast-from-memory, // because that would narrow the load, which isn't legal for volatiles. - const LoadSDNode *Ld = dyn_cast(Op.getNode()); + auto *Ld = cast(Op.getNode()); return !Ld->isVolatile() || Ld->getValueSizeInBits(0) == EltVT.getScalarSizeInBits(); }