Fix Windows build after r159281: s/iterator/const_iterator
authorAlexey Samsonov <samsonov@google.com>
Thu, 28 Jun 2012 07:47:50 +0000 (07:47 +0000)
committerAlexey Samsonov <samsonov@google.com>
Thu, 28 Jun 2012 07:47:50 +0000 (07:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159334 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/DFAPacketizerEmitter.cpp

index d97297f63d19e6f50bd557835e4aad96b92b1e2e..8bfecead6d2ecd59f2d0e303fce2436d30eece86 100644 (file)
@@ -262,7 +262,7 @@ void State::AddInsnClass(unsigned InsnClass,
 // be added to the packet represented by this state.
 //
 bool State::canAddInsnClass(unsigned InsnClass) const {
-  for (std::set<unsigned>::iterator SI = stateInfo.begin();
+  for (std::set<unsigned>::const_iterator SI = stateInfo.begin();
        SI != stateInfo.end(); ++SI) {
     if (~*SI & InsnClass)
       return true;