diff --git a/lib/Target/R600/SIISelLowering.cpp b/lib/Target/R600/SIISelLowering.cpp index 66a9c7646f2..132aa284a3b 100644 --- a/lib/Target/R600/SIISelLowering.cpp +++ b/lib/Target/R600/SIISelLowering.cpp @@ -2159,9 +2159,9 @@ MachineSDNode *SITargetLowering::AdjustRegClass(MachineSDNode *N, // The immediate offset is in dwords on SI and in bytes on VI. if (Subtarget->getGeneration() >= AMDGPUSubtarget::VOLCANIC_ISLANDS) - Ops.push_back(DAG.getConstant(Offset->getSExtValue(), MVT::i32)); + Ops.push_back(DAG.getTargetConstant(Offset->getSExtValue(), MVT::i32)); else - Ops.push_back(DAG.getConstant(Offset->getSExtValue() << 2, MVT::i32)); + Ops.push_back(DAG.getTargetConstant(Offset->getSExtValue() << 2, MVT::i32)); // Copy remaining operands so we keep any chain and glue nodes that follow // the normal operands.