Fix a checking failure in gs
authorChris Lattner <sabre@nondot.org>
Sat, 3 Sep 2005 01:04:40 +0000 (01:04 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 3 Sep 2005 01:04:40 +0000 (01:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23235 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAG.cpp

index bf9482587dc05d199624a50065049b3d535369c9..f7350700ede5d9f0eb2f9e1204ae007ca3fe6a85 100644 (file)
@@ -362,7 +362,7 @@ void SelectionDAG::RemoveNodeFromCSEMaps(SDNode *N) {
   // not subject to CSE.
   if (!Erased && N->getValueType(N->getNumValues()-1) != MVT::Flag &&
       N->getOpcode() != ISD::CALL && N->getOpcode() != ISD::CALLSEQ_START &&
-      N->getOpcode() != ISD::CALLSEQ_END) {
+      N->getOpcode() != ISD::CALLSEQ_END && !N->isTargetOpcode()) {
     
     N->dump();
     assert(0 && "Node is not in map!");