diff --git a/llvm/include/llvm/CodeGen/SelectionDAGNodes.h b/llvm/include/llvm/CodeGen/SelectionDAGNodes.h --- a/llvm/include/llvm/CodeGen/SelectionDAGNodes.h +++ b/llvm/include/llvm/CodeGen/SelectionDAGNodes.h @@ -2354,7 +2354,7 @@ // Mask is a vector of i1 elements; // the type of EVL is TLI.getVPExplicitVectorLengthTy(). const SDValue &getOffset() const { - return getOperand(getOpcode() == ISD::MLOAD ? 2 : 3); + return getOperand(getOpcode() == ISD::VP_LOAD ? 2 : 3); } const SDValue &getBasePtr() const { return getOperand(getOpcode() == ISD::VP_LOAD ? 1 : 2);