diff options
Diffstat (limited to 'contrib/llvm-project/llvm/lib/Target/M68k/M68kISelLowering.cpp')
| -rw-r--r-- | contrib/llvm-project/llvm/lib/Target/M68k/M68kISelLowering.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/llvm-project/llvm/lib/Target/M68k/M68kISelLowering.cpp b/contrib/llvm-project/llvm/lib/Target/M68k/M68kISelLowering.cpp index c4d7a0dec7f3..158393f02a24 100644 --- a/contrib/llvm-project/llvm/lib/Target/M68k/M68kISelLowering.cpp +++ b/contrib/llvm-project/llvm/lib/Target/M68k/M68kISelLowering.cpp @@ -2375,7 +2375,7 @@ SDValue M68kTargetLowering::LowerSELECT(SDValue Op, SelectionDAG &DAG) const {    // a >= b ? -1 :  0 -> RES = setcc_carry    // a >= b ?  0 : -1 -> RES = ~setcc_carry    if (Cond.getOpcode() == M68kISD::SUB) { -    unsigned CondCode = cast<ConstantSDNode>(CC)->getZExtValue(); +    unsigned CondCode = CC->getAsZExtVal();      if ((CondCode == M68k::COND_CC || CondCode == M68k::COND_CS) &&          (isAllOnesConstant(Op1) || isAllOnesConstant(Op2)) && @@ -2491,7 +2491,7 @@ SDValue M68kTargetLowering::LowerBRCOND(SDValue Op, SelectionDAG &DAG) const {        Cond = Cmp;        AddTest = false;      } else { -      switch (cast<ConstantSDNode>(CC)->getZExtValue()) { +      switch (CC->getAsZExtVal()) {        default:          break;        case M68k::COND_VS:  | 
