Unify memory instruction validation style (#1934)

* Rename ValidateMemoryInstructions to MemoryPass
* Changed functions to take pointer to an instruction instead of
reference
This commit is contained in:
alan-baker
2018-09-27 12:34:14 -04:00
committed by Lei Zhang
parent 0e22a9b3c9
commit dec8917fc8
3 changed files with 74 additions and 77 deletions
+1 -2
View File
@@ -313,8 +313,7 @@ spv_result_t ValidateBinaryUsingContextAndValidationState(
if (auto error = ModeSettingPass(*vstate, &instruction)) return error;
if (auto error = TypePass(*vstate, &instruction)) return error;
if (auto error = ConstantPass(*vstate, &instruction)) return error;
if (auto error = ValidateMemoryInstructions(*vstate, &instruction))
return error;
if (auto error = MemoryPass(*vstate, &instruction)) return error;
if (auto error = FunctionPass(*vstate, &instruction)) return error;
if (auto error = ImagePass(*vstate, &instruction)) return error;
if (auto error = ConversionPass(*vstate, &instruction)) return error;