mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +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))
|
||||
Imm = FP->getValueAPF().bitcastToAPInt().getZExtValue();
|
||||
else {
|
||||
ConstantSDNode *C = dyn_cast<ConstantSDNode>(N);
|
||||
assert(C);
|
||||
ConstantSDNode *C = cast<ConstantSDNode>(N);
|
||||
Imm = C->getZExtValue();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user