R600: Replace dyn_cast + assert with cast

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205730 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Tom Stellard 2014-04-07 19:31:13 +00:00
parent 4db84a0687
commit dd2d430352

View File

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