aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2005-12-30 00:10:38 +0000
committerNate Begeman <natebegeman@mac.com>2005-12-30 00:10:38 +0000
commit512beb9465ec9d22de6352eee4339e8295bfb79b (patch)
tree8c668fe6d0ebc2762aff28000ccd5a9bc2e181d7 /lib/CodeGen/SelectionDAG/SelectionDAG.cpp
parenta08787faa875104be7c26fa5dd61b15620aecd27 (diff)
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
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index b510f1cd95..853b48c9c8 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -511,7 +511,7 @@ SDOperand SelectionDAG::getGlobalAddress(const GlobalValue *GV,
MVT::ValueType VT, int offset) {
SDNode *&N = GlobalValues[std::make_pair(GV, offset)];
if (N) return SDOperand(N, 0);
- N = new GlobalAddressSDNode(false, GV, VT);
+ N = new GlobalAddressSDNode(false, GV, VT, offset);
AllNodes.push_back(N);
return SDOperand(N, 0);
}