1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

Restore the original behavior of SelectionDAG::getTargetIndex().

It looks like an extra negation snuck in as apart of restoring it.

llvm-svn: 250726
This commit is contained in:
Owen Anderson 2015-10-19 19:27:40 +00:00
parent 62bb5a1179
commit c398b9a4d4

View File

@ -1410,7 +1410,7 @@ SDValue SelectionDAG::getTargetIndex(int Index, EVT VT, int64_t Offset,
return SDValue(E, 0); return SDValue(E, 0);
SDNode *N = SDNode *N =
new (NodeAllocator) TargetIndexSDNode(Index, VT, Offset, -TargetFlags); new (NodeAllocator) TargetIndexSDNode(Index, VT, Offset, TargetFlags);
CSEMap.InsertNode(N, IP); CSEMap.InsertNode(N, IP);
InsertNode(N); InsertNode(N);
return SDValue(N, 0); return SDValue(N, 0);