summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-04-17 15:32:28 +0000
committerDan Gohman <gohman@apple.com>2010-04-17 15:32:28 +0000
commit8422e57baaf8a88d8cca5d09e0f4077582faaaaa (patch)
tree9bc9f8dd6003625b13aa9563a5a385d307efd341 /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
parent20e094c71199cd19c10df18f25c43fff37edc809 (diff)
downloadbcm5719-llvm-8422e57baaf8a88d8cca5d09e0f4077582faaaaa.tar.gz
bcm5719-llvm-8422e57baaf8a88d8cca5d09e0f4077582faaaaa.zip
Delete now-unnecessary const_casts.
llvm-svn: 101637
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 8c10cc29d89..989293d45ac 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -5361,7 +5361,7 @@ HandleSDNode::~HandleSDNode() {
GlobalAddressSDNode::GlobalAddressSDNode(unsigned Opc, const GlobalValue *GA,
EVT VT, int64_t o, unsigned char TF)
: SDNode(Opc, DebugLoc(), getSDVTList(VT)), Offset(o), TargetFlags(TF) {
- TheGlobal = const_cast<GlobalValue*>(GA);
+ TheGlobal = GA;
}
MemSDNode::MemSDNode(unsigned Opc, DebugLoc dl, SDVTList VTs, EVT memvt,
OpenPOWER on IntegriCloud