[ms-inline asm] Add an interface to the GetMCInstOperandNum() function in the
[oota-llvm.git] / utils / TableGen / DFAPacketizerEmitter.cpp
index 1a5af84c6e0aec70220313769788f19099788608..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;
@@ -290,6 +290,7 @@ void DFA::addTransition(Transition *T) {
   // Add the new transition.
   bool Added = stateTransitions[T->from].insert(T).second;
   assert(Added && "Cannot have multiple states for the same input");
+  (void)Added;
 }