R600: Replace dyn_cast + assert with cast

llvm-svn: 205730
This commit is contained in:
Tom Stellard 2014-04-07 19:31:13 +00:00
parent 0dc06b9a3d
commit 3cbe014027
1 changed files with 1 additions and 2 deletions

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