diff options
author | dan sinclair <dj2@everburning.com> | 2018-08-01 16:12:07 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-01 16:12:07 -0400 |
commit | c9cd73b33abd64a9578b9f668c57218fb9e84297 (patch) | |
tree | 720b467fe4c6c113a4eaa36a0c0da99945ebf633 /source/val/validate.cpp | |
parent | d49bedcaa68a907e2b201bc372d69256e50f2ab5 (diff) |
Remove instruction_counter from ValidationState. (#1781)
The instruction counter is the same as the size of the
ordered_instruction list when we insert a new instruction. This Cl
removes instruction_counter_ and uses that instead.
Diffstat (limited to 'source/val/validate.cpp')
-rw-r--r-- | source/val/validate.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/source/val/validate.cpp b/source/val/validate.cpp index 3ba458d0..6084e483 100644 --- a/source/val/validate.cpp +++ b/source/val/validate.cpp @@ -111,7 +111,6 @@ spv_result_t ProcessExtensions(void* user_data, spv_result_t ProcessInstruction(void* user_data, const spv_parsed_instruction_t* inst) { ValidationState_t& _ = *(reinterpret_cast<ValidationState_t*>(user_data)); - _.increment_instruction_count(); if (static_cast<SpvOp>(inst->opcode) == SpvOpEntryPoint) { const auto entry_point = inst->words[2]; const SpvExecutionModel execution_model = SpvExecutionModel(inst->words[1]); |