mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-02 00:35:27 +00:00
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:
parent
4db84a0687
commit
dd2d430352
@ -376,8 +376,7 @@ SDNode *AMDGPUDAGToDAGISel::Select(SDNode *N) {
|
|||||||
if (ConstantFPSDNode *FP = dyn_cast<ConstantFPSDNode>(N))
|
if (ConstantFPSDNode *FP = dyn_cast<ConstantFPSDNode>(N))
|
||||||
Imm = FP->getValueAPF().bitcastToAPInt().getZExtValue();
|
Imm = FP->getValueAPF().bitcastToAPInt().getZExtValue();
|
||||||
else {
|
else {
|
||||||
ConstantSDNode *C = dyn_cast<ConstantSDNode>(N);
|
ConstantSDNode *C = cast<ConstantSDNode>(N);
|
||||||
assert(C);
|
|
||||||
Imm = C->getZExtValue();
|
Imm = C->getZExtValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user