mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
Use cast instead of assert + dyn_cast
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210628 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e0162b9648
commit
3692045d8e
@ -726,8 +726,7 @@ SDValue AMDGPUTargetLowering::LowerFrameIndex(SDValue Op,
|
||||
const AMDGPUFrameLowering *TFL =
|
||||
static_cast<const AMDGPUFrameLowering*>(getTargetMachine().getFrameLowering());
|
||||
|
||||
FrameIndexSDNode *FIN = dyn_cast<FrameIndexSDNode>(Op);
|
||||
assert(FIN);
|
||||
FrameIndexSDNode *FIN = cast<FrameIndexSDNode>(Op);
|
||||
|
||||
unsigned FrameIndex = FIN->getIndex();
|
||||
unsigned Offset = TFL->getFrameIndexOffset(MF, FrameIndex);
|
||||
@ -921,7 +920,7 @@ SDValue AMDGPUTargetLowering::SplitVectorLoad(const SDValue &Op,
|
||||
|
||||
SDValue AMDGPUTargetLowering::MergeVectorStore(const SDValue &Op,
|
||||
SelectionDAG &DAG) const {
|
||||
StoreSDNode *Store = dyn_cast<StoreSDNode>(Op);
|
||||
StoreSDNode *Store = cast<StoreSDNode>(Op);
|
||||
EVT MemVT = Store->getMemoryVT();
|
||||
unsigned MemBits = MemVT.getSizeInBits();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user