[llvm-commits] [poolalloc] r60775 - /poolalloc/trunk/include/poolalloc_runtime/Support/SplayTree.h
John Criswell
criswell at uiuc.edu
Tue Dec 9 10:11:00 PST 2008
Author: criswell
Date: Tue Dec 9 12:10:59 2008
New Revision: 60775
URL: http://llvm.org/viewvc/llvm-project?rev=60775&view=rev
Log:
Make a reference parameter const because it should never be modified by the
method.
Modified:
poolalloc/trunk/include/poolalloc_runtime/Support/SplayTree.h
Modified: poolalloc/trunk/include/poolalloc_runtime/Support/SplayTree.h
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/include/poolalloc_runtime/Support/SplayTree.h?rev=60775&r1=60774&r2=60775&view=diff
==============================================================================
--- poolalloc/trunk/include/poolalloc_runtime/Support/SplayTree.h (original)
+++ poolalloc/trunk/include/poolalloc_runtime/Support/SplayTree.h Tue Dec 9 12:10:59 2008
@@ -238,7 +238,7 @@
explicit RangeSplayMap(const Allocator& A= Allocator() )
: Tree(A) {}
- bool insert(void* start, void* end, T& d) {
+ bool insert(void* start, void* end, const T& d) {
range_tree_node<T>* t = Tree.__insert(start,end);
if (t == 0) return false;
t->data = d;
More information about the llvm-commits
mailing list