From: Owen Anderson Date: Mon, 19 Oct 2015 19:27:40 +0000 (+0000) Subject: Restore the original behavior of SelectionDAG::getTargetIndex(). X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5078875c56e16985a1f03d493579d88b47a14c4b;p=llvm Restore the original behavior of SelectionDAG::getTargetIndex(). It looks like an extra negation snuck in as apart of restoring it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250726 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index bd948f5b5d0..a541a85a82d 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -1410,7 +1410,7 @@ SDValue SelectionDAG::getTargetIndex(int Index, EVT VT, int64_t Offset, return SDValue(E, 0); SDNode *N = - new (NodeAllocator) TargetIndexSDNode(Index, VT, Offset, -TargetFlags); + new (NodeAllocator) TargetIndexSDNode(Index, VT, Offset, TargetFlags); CSEMap.InsertNode(N, IP); InsertNode(N); return SDValue(N, 0);