forked from OSchip/llvm-project
R600: Replace dyn_cast + assert with cast
llvm-svn: 205730
This commit is contained in:
parent
0dc06b9a3d
commit
3cbe014027
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue