Make classof in MemSDNode consistent with MemIntrinsicSDNode
authorHal Finkel <hfinkel@anl.gov>
Thu, 31 Jul 2014 22:31:33 +0000 (22:31 +0000)
committerHal Finkel <hfinkel@anl.gov>
Thu, 31 Jul 2014 22:31:33 +0000 (22:31 +0000)
If INTRINSIC_W_CHAIN and INTRINSIC_VOID are MemIntrinsicSDNodes, and a
MemIntrinsicSDNode is a MemSDNode, then INTRINSIC_W_CHAIN and INTRINSIC_VOID
must be MemSDNodes too.

Noticed by inspection.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214452 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/SelectionDAGNodes.h

index 78e6fc5c826b6193ce1a31b3728fd88bf62ebc7d..9ab60ff5f2dd34e17b30d2b54e2862bac8fa802c 100644 (file)
@@ -1158,6 +1158,8 @@ public:
            N->getOpcode() == ISD::ATOMIC_LOAD_UMAX    ||
            N->getOpcode() == ISD::ATOMIC_LOAD         ||
            N->getOpcode() == ISD::ATOMIC_STORE        ||
+           N->getOpcode() == ISD::INTRINSIC_W_CHAIN   ||
+           N->getOpcode() == ISD::INTRINSIC_VOID      ||
            N->isTargetMemoryOpcode();
   }
 };