mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 20:29:48 +00:00
Make sure to pass the offset into the new node, so that we don't silently
drop it on the floor. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25044 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a08787faa8
commit
512beb9465
@ -511,7 +511,7 @@ SDOperand SelectionDAG::getGlobalAddress(const GlobalValue *GV,
|
|||||||
MVT::ValueType VT, int offset) {
|
MVT::ValueType VT, int offset) {
|
||||||
SDNode *&N = GlobalValues[std::make_pair(GV, offset)];
|
SDNode *&N = GlobalValues[std::make_pair(GV, offset)];
|
||||||
if (N) return SDOperand(N, 0);
|
if (N) return SDOperand(N, 0);
|
||||||
N = new GlobalAddressSDNode(false, GV, VT);
|
N = new GlobalAddressSDNode(false, GV, VT, offset);
|
||||||
AllNodes.push_back(N);
|
AllNodes.push_back(N);
|
||||||
return SDOperand(N, 0);
|
return SDOperand(N, 0);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user