summaryrefslogtreecommitdiff
path: root/include/llvm/ADT/ilist_node.h
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-05-13 18:35:02 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-05-13 18:35:02 +0000
commitf1fd2288f36b58b8979761ba09e2a398c6afd110 (patch)
tree7c409d511f86adacf959a235b949f0ee3bd15a16 /include/llvm/ADT/ilist_node.h
parent18e05b4692068b2cc1dfbc3aeb682ac2ec63d11b (diff)
downloadllvm-f1fd2288f36b58b8979761ba09e2a398c6afd110.tar.gz
llvm-f1fd2288f36b58b8979761ba09e2a398c6afd110.tar.bz2
llvm-f1fd2288f36b58b8979761ba09e2a398c6afd110.tar.xz
Fix const ilist_node::get{Prev,Next}Node() to actually compile. Picky, picky.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103723 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/ilist_node.h')
-rw-r--r--include/llvm/ADT/ilist_node.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/ADT/ilist_node.h b/include/llvm/ADT/ilist_node.h
index 3de4f156d2..f0080035cb 100644
--- a/include/llvm/ADT/ilist_node.h
+++ b/include/llvm/ADT/ilist_node.h
@@ -67,7 +67,7 @@ public:
/// \brief Get the previous node, or 0 for the list head.
const NodeTy *getPrevNode() const {
- NodeTy *Prev = this->getPrev();
+ const NodeTy *Prev = this->getPrev();
// Check for sentinel.
if (!Prev->getNext())
@@ -89,7 +89,7 @@ public:
/// \brief Get the next node, or 0 for the list tail.
const NodeTy *getNextNode() const {
- NodeTy *Next = getNext();
+ const NodeTy *Next = getNext();
// Check for sentinel.
if (!Next->getNext())