diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -7952,8 +7952,7 @@ assert((Opcode == ISD::INTRINSIC_VOID || Opcode == ISD::INTRINSIC_W_CHAIN || Opcode == ISD::PREFETCH || - ((int)Opcode <= std::numeric_limits::max() && - (int)Opcode >= ISD::FIRST_TARGET_MEMORY_OPCODE)) && + (int)Opcode >= ISD::FIRST_TARGET_MEMORY_OPCODE) && "Opcode is not a memory-accessing opcode!"); // Memoize the node unless it returns a flag.