diff options
author | Roman Divacky <rdivacky@freebsd.org> | 2012-09-05 22:03:34 +0000 |
---|---|---|
committer | Roman Divacky <rdivacky@freebsd.org> | 2012-09-05 22:03:34 +0000 |
commit | 665260222fd1b2e269b8e4c17cf2aa29e5eef2cc (patch) | |
tree | a6e557a0fce696531fa12c9905da27cbaf0cd150 /llvm/lib/CodeGen | |
parent | 0e1adc60855287260d99451eca483c509537d958 (diff) | |
download | bcm5719-llvm-665260222fd1b2e269b8e4c17cf2aa29e5eef2cc.tar.gz bcm5719-llvm-665260222fd1b2e269b8e4c17cf2aa29e5eef2cc.zip |
Constify SDNodeIterator an stop its only non-const user being cast stripped
of its constness. Found by gcc48 -Wcast-qual.
llvm-svn: 163254
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp index 618da5259f7..39216356522 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp +++ b/llvm/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 |