summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2014-04-07 19:31:13 +0000
committerTom Stellard <thomas.stellard@amd.com>2014-04-07 19:31:13 +0000
commit3cbe014027270091a946de3ed48ce1206e728596 (patch)
tree7d76efa1c5dd668f2ebd583c16f222611167e80f
parent0dc06b9a3d57bfe38ba6eebfe99892d15d9da4bb (diff)
downloadbcm5719-llvm-3cbe014027270091a946de3ed48ce1206e728596.tar.gz
bcm5719-llvm-3cbe014027270091a946de3ed48ce1206e728596.zip
R600: Replace dyn_cast + assert with cast
llvm-svn: 205730
-rw-r--r--llvm/lib/Target/R600/AMDGPUISelDAGToDAG.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/R600/AMDGPUISelDAGToDAG.cpp b/llvm/lib/Target/R600/AMDGPUISelDAGToDAG.cpp
index 1661056f297..9a15d4d34fa 100644
--- a/llvm/lib/Target/R600/AMDGPUISelDAGToDAG.cpp
+++ b/llvm/lib/Target/R600/AMDGPUISelDAGToDAG.cpp
@@ -376,8 +376,7 @@ SDNode *AMDGPUDAGToDAGISel::Select(SDNode *N) {
if (ConstantFPSDNode *FP = dyn_cast<ConstantFPSDNode>(N))
Imm = FP->getValueAPF().bitcastToAPInt().getZExtValue();
else {
- ConstantSDNode *C = dyn_cast<ConstantSDNode>(N);
- assert(C);
+ ConstantSDNode *C = cast<ConstantSDNode>(N);
Imm = C->getZExtValue();
}
OpenPOWER on IntegriCloud