diff options
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(); } |

