[libFuzzer] add a flag -max_total_time
[oota-llvm.git] / utils / TableGen / DFAPacketizerEmitter.cpp
index 8a2fb32b1d4af0544e3ad0d2d0ad439fad0a30b9..5060b6e9ce7c0b059fac364b563fa3b1a849ef68 100644 (file)
@@ -91,7 +91,6 @@ class State {
   mutable TransitionMap Transitions;
 
   State();
-  State(const State &S);
 
   bool operator<(const State &s) const {
     return stateNum < s.stateNum;
@@ -156,11 +155,6 @@ public:
 State::State() :
   stateNum(currentStateNum++), isInitial(false) {}
 
-
-State::State(const State &S) :
-  stateNum(currentStateNum++), isInitial(S.isInitial),
-  stateInfo(S.stateInfo) {}
-
 DFA::DFA(): currentState(nullptr) {}
 
 // 
@@ -478,7 +472,7 @@ void DFAPacketizerEmitter::run(raw_ostream &OS) {
           current->canAddInsnClass(InsnClass)) {
         const State *NewState;
         current->AddInsnClass(InsnClass, NewStateResources);
-        assert(NewStateResources.size() && "New states must be generated");
+        assert(!NewStateResources.empty() && "New states must be generated");
 
         //
         // If we have seen this state before, then do not create a new state.