diff options
| author | Tom Stellard <thomas.stellard@amd.com> | 2014-04-07 19:31:13 +0000 |
|---|---|---|
| committer | Tom Stellard <thomas.stellard@amd.com> | 2014-04-07 19:31:13 +0000 |
| commit | 3cbe014027270091a946de3ed48ce1206e728596 (patch) | |
| tree | 7d76efa1c5dd668f2ebd583c16f222611167e80f /llvm/lib/Target | |
| parent | 0dc06b9a3d57bfe38ba6eebfe99892d15d9da4bb (diff) | |
| download | bcm5719-llvm-3cbe014027270091a946de3ed48ce1206e728596.tar.gz bcm5719-llvm-3cbe014027270091a946de3ed48ce1206e728596.zip | |
R600: Replace dyn_cast + assert with cast
llvm-svn: 205730
Diffstat (limited to 'llvm/lib/Target')
| -rw-r--r-- | llvm/lib/Target/R600/AMDGPUISelDAGToDAG.cpp | 3 |
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(); } |

