private void processReg(RegisterSpec spec) {
      int reg = spec.getNextReg();

      if (reg > regCount) {
        regCount = reg;
      }
    }
Processes the given register spec.

@param spec {@code non-null;} the register spec
android/android_framework/dex-maker/src/main/java/com/android/dx/rop/code/BasicBlockList.java