forked from OSchip/llvm-project
parent
e7b0dde2ee
commit
3a113ec468
|
@ -952,7 +952,7 @@ SDValue SelectionDAG::getGlobalAddress(const GlobalValue *GV,
|
|||
ID.AddInteger(Offset);
|
||||
void *IP = 0;
|
||||
if (SDNode *E = CSEMap.FindNodeOrInsertPos(ID, IP))
|
||||
return SDValue(E, 0);
|
||||
return SDValue(E, 0);
|
||||
SDNode *N = NodeAllocator.Allocate<GlobalAddressSDNode>();
|
||||
new (N) GlobalAddressSDNode(isTargetGA, GV, VT, Offset);
|
||||
CSEMap.InsertNode(N, IP);
|
||||
|
@ -4398,7 +4398,6 @@ SDNode *SelectionDAG::getNodeIfExists(unsigned Opcode, SDVTList VTList,
|
|||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
/// ReplaceAllUsesWith - Modify anything using 'From' to use 'To' instead.
|
||||
/// This can cause recursive merging of nodes in the DAG.
|
||||
///
|
||||
|
|
Loading…
Reference in New Issue