diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index a41efd58ce4e4..0a2687a16a80c 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -967,6 +967,9 @@ static void AddNodeIDCustom(FoldingSetNodeID &ID, const SDNode *N) { case ISD::INTRINSIC_W_CHAIN: // Handled by MemIntrinsicSDNode check after the switch. break; + case ISD::MDNODE_SDNODE: + ID.AddPointer(cast(N)->getMD()); + break; } // end switch (N->getOpcode()) // MemIntrinsic nodes could also have subclass data, address spaces, and flags