mirror of
https://gitee.com/openharmony/third_party_spirv-tools
synced 2024-11-27 09:32:08 +00:00
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.
This commit is contained in:
parent
94808bd0f0
commit
ffaecad326
@ -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<uint32_t>(SpvMemoryAccessMaskNone);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user