diff options
| author | Nate Begeman <natebegeman@mac.com> | 2005-12-30 00:10:38 +0000 |
|---|---|---|
| committer | Nate Begeman <natebegeman@mac.com> | 2005-12-30 00:10:38 +0000 |
| commit | 164db3a7eb7b2a5530361810464c1e31c2f0e1e5 (patch) | |
| tree | e79f7cae41ad055ae2d4390cd60d7d0d43a18c3b /llvm | |
| parent | 488f1cb6d83615f9066727df65df6422457c57c8 (diff) | |
| download | bcm5719-llvm-164db3a7eb7b2a5530361810464c1e31c2f0e1e5.tar.gz bcm5719-llvm-164db3a7eb7b2a5530361810464c1e31c2f0e1e5.zip | |
Make sure to pass the offset into the new node, so that we don't silently
drop it on the floor.
llvm-svn: 25044
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index b510f1cd959..853b48c9c8e 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/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); } |

