projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a08787f
)
Make sure to pass the offset into the new node, so that we don't silently
author
Nate Begeman
<natebegeman@mac.com>
Fri, 30 Dec 2005 00:10:38 +0000
(
00:10
+0000)
committer
Nate Begeman
<natebegeman@mac.com>
Fri, 30 Dec 2005 00:10:38 +0000
(
00:10
+0000)
drop it on the floor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25044
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index b510f1cd959ee7bcbc5123fad824d18e571b5743..853b48c9c8e42350122b28be3fd5504fd0b77a74 100644
(file)
--- 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);
}