Replace size method call of containers to empty method where appropriate
[oota-llvm.git] / utils / TableGen / DFAPacketizerEmitter.cpp
index ea14cb973ebcde3f7f7ae2ffc7ee6b10f7d8d4a9..5060b6e9ce7c0b059fac364b563fa3b1a849ef68 100644 (file)
@@ -472,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.