From ffaecad326d84d6b62df2825a016f3b8d5663315 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Perez?= Date: Fri, 5 Jun 2020 08:29:23 -0300 Subject: [PATCH] Fix instruction function use (#3390) This change replaces the instruction function GetSingleWordOperand with GetSingleWordInOperand. Debugging spirv-fuzz, GetSingleWordOperand was returning the result id of an OpLoad instruction with memory operands. --- source/fuzz/fuzzer_pass_adjust_memory_operands_masks.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/fuzz/fuzzer_pass_adjust_memory_operands_masks.cpp b/source/fuzz/fuzzer_pass_adjust_memory_operands_masks.cpp index 32f5ea5fb..68f0ca7e4 100644 --- a/source/fuzz/fuzzer_pass_adjust_memory_operands_masks.cpp +++ b/source/fuzz/fuzzer_pass_adjust_memory_operands_masks.cpp @@ -75,7 +75,7 @@ void FuzzerPassAdjustMemoryOperandsMasks::Apply() { *inst_it, mask_index); auto existing_mask = existing_mask_in_operand_index < inst_it->NumInOperands() - ? inst_it->GetSingleWordOperand( + ? inst_it->GetSingleWordInOperand( existing_mask_in_operand_index) : static_cast(SpvMemoryAccessMaskNone);