[llvm-commits] [llvm] r156318 - /llvm/trunk/include/llvm/ADT/ImmutableSet.h

Jordy Rose jediknil at belkadan.com
Mon May 7 12:24:40 PDT 2012


Author: jrose
Date: Mon May  7 14:24:40 2012
New Revision: 156318

URL: http://llvm.org/viewvc/llvm-project?rev=156318&view=rev
Log:
Constify (trivially) ImmutableSet::iterator::getVisitState().

This was probably intended all along.

Modified:
    llvm/trunk/include/llvm/ADT/ImmutableSet.h

Modified: llvm/trunk/include/llvm/ADT/ImmutableSet.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/ImmutableSet.h?rev=156318&r1=156317&r2=156318&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/ImmutableSet.h (original)
+++ llvm/trunk/include/llvm/ADT/ImmutableSet.h Mon May  7 14:24:40 2012
@@ -667,7 +667,7 @@
     return reinterpret_cast<TreeTy*>(stack.back() & ~Flags);
   }
 
-  uintptr_t getVisitState() {
+  uintptr_t getVisitState() const {
     assert(!stack.empty());
     return stack.back() & Flags;
   }





More information about the llvm-commits mailing list