mirror of
https://gitee.com/openharmony/third_party_spirv-tools
synced 2025-02-05 14:55:58 +00:00
Fix function use (#3372)
This PR fixes a function use of a Instruction object.
This commit is contained in:
parent
9cb2571a18
commit
55af3902fc
@ -60,7 +60,7 @@ void FuzzerPassAddLoads::Apply() {
|
||||
if (!instruction->result_id() || !instruction->type_id()) {
|
||||
return false;
|
||||
}
|
||||
switch (instruction->result_id()) {
|
||||
switch (instruction->opcode()) {
|
||||
case SpvOpConstantNull:
|
||||
case SpvOpUndef:
|
||||
// Do not allow loading from a null or undefined pointer;
|
||||
|
@ -72,7 +72,7 @@ void FuzzerPassAddStores::Apply() {
|
||||
// Read only: cannot store to it.
|
||||
return false;
|
||||
}
|
||||
switch (instruction->result_id()) {
|
||||
switch (instruction->opcode()) {
|
||||
case SpvOpConstantNull:
|
||||
case SpvOpUndef:
|
||||
// Do not allow storing to a null or undefined pointer;
|
||||
|
Loading…
x
Reference in New Issue
Block a user