projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make MapVector a bit more expensive but harder to misuse. We now only
[oota-llvm.git]
/
include
/
llvm
/
ADT
/
ilist_node.h
diff --git
a/include/llvm/ADT/ilist_node.h
b/include/llvm/ADT/ilist_node.h
index 3de4f156d20e60629457aee7929152522fdfef6e..f0080035cb885157e0a80b9e0300227e21ad3300 100644
(file)
--- 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 {
/// \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())
// 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 {
/// \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())
// Check for sentinel.
if (!Next->getNext())