diff options
| author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2013-05-18 00:21:46 +0000 |
|---|---|---|
| committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2013-05-18 00:21:46 +0000 |
| commit | 75865923c9c688fad73abf8113338653c907229c (patch) | |
| tree | fda83ecca8a85d2a71b208eb9b7f2721825cf6ed /llvm/lib/Target/Mips/MipsISelLowering.cpp | |
| parent | 6ecb232b311f44a24ceca1f22bb00838dc3cc8f1 (diff) | |
| download | bcm5719-llvm-75865923c9c688fad73abf8113338653c907229c.tar.gz bcm5719-llvm-75865923c9c688fad73abf8113338653c907229c.zip | |
Add LLVMContext argument to getSetCCResultType
llvm-svn: 182180
Diffstat (limited to 'llvm/lib/Target/Mips/MipsISelLowering.cpp')
| -rw-r--r-- | llvm/lib/Target/Mips/MipsISelLowering.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Target/Mips/MipsISelLowering.cpp b/llvm/lib/Target/Mips/MipsISelLowering.cpp index b344ddabc9c..d56f066cd9d 100644 --- a/llvm/lib/Target/Mips/MipsISelLowering.cpp +++ b/llvm/lib/Target/Mips/MipsISelLowering.cpp @@ -409,7 +409,7 @@ const MipsTargetLowering *MipsTargetLowering::create(MipsTargetMachine &TM) { return llvm::createMipsSETargetLowering(TM); } -EVT MipsTargetLowering::getSetCCResultType(EVT VT) const { +EVT MipsTargetLowering::getSetCCResultType(LLVMContext &, EVT VT) const { if (!VT.isVector()) return MVT::i32; return VT.changeVectorElementTypeToInteger(); @@ -1420,7 +1420,8 @@ lowerSELECT_CC(SDValue Op, SelectionDAG &DAG) const { DebugLoc DL = Op.getDebugLoc(); EVT Ty = Op.getOperand(0).getValueType(); - SDValue Cond = DAG.getNode(ISD::SETCC, DL, getSetCCResultType(Ty), + SDValue Cond = DAG.getNode(ISD::SETCC, DL, + getSetCCResultType(*DAG.getContext(), Ty), Op.getOperand(0), Op.getOperand(1), Op.getOperand(4)); |

