summaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
diff options
context:
space:
mode:
authorRoman Divacky <rdivacky@freebsd.org>2012-09-05 22:03:34 +0000
committerRoman Divacky <rdivacky@freebsd.org>2012-09-05 22:03:34 +0000
commit141e99745adbd3ba9fa7315af3384c1d08c4c20c (patch)
tree1f68493c493bc0b6fb5d6acfb825db2521fa1be5 /lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
parent98eb98b0f2e6573f5aee67ce3e75624392d637b7 (diff)
downloadllvm-141e99745adbd3ba9fa7315af3384c1d08c4c20c.tar.gz
llvm-141e99745adbd3ba9fa7315af3384c1d08c4c20c.tar.bz2
llvm-141e99745adbd3ba9fa7315af3384c1d08c4c20c.tar.xz
Constify SDNodeIterator an stop its only non-const user being cast stripped
of its constness. Found by gcc48 -Wcast-qual. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163254 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
index 618da5259f..3921635652 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
@@ -49,7 +49,7 @@ namespace llvm {
template<typename EdgeIter>
static std::string getEdgeSourceLabel(const void *Node, EdgeIter I) {
- return itostr(I - SDNodeIterator::begin((SDNode *) Node));
+ return itostr(I - SDNodeIterator::begin((const SDNode *) Node));
}
/// edgeTargetsEdgeSource - This method returns true if this outgoing edge