summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2014-06-11 03:30:06 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2014-06-11 03:30:06 +0000
commit10da3b25160093aa9db5dfa6128df0df3c3fc4ff (patch)
tree62022bd0637e430dd45c9aaa56162119986edf64 /llvm/lib
parentc9df79404219b0fffc512a1ac9cb94f941500522 (diff)
downloadbcm5719-llvm-10da3b25160093aa9db5dfa6128df0df3c3fc4ff.tar.gz
bcm5719-llvm-10da3b25160093aa9db5dfa6128df0df3c3fc4ff.zip
Use cast instead of assert + dyn_cast
llvm-svn: 210628
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/R600/AMDGPUISelLowering.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Target/R600/AMDGPUISelLowering.cpp b/llvm/lib/Target/R600/AMDGPUISelLowering.cpp
index 8197dbd3ee0..953a2e53254 100644
--- a/llvm/lib/Target/R600/AMDGPUISelLowering.cpp
+++ b/llvm/lib/Target/R600/AMDGPUISelLowering.cpp
@@ -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();
OpenPOWER on IntegriCloud