mirror of
https://gitee.com/openharmony/third_party_spirv-tools
synced 2024-11-24 07:49:46 +00:00
Fix Instruction::IsFloatingPointFoldingAllowed()
Was looking for decorations based on opcode. Should use result_id.
This commit is contained in:
parent
5c334514d6
commit
d4a10590b7
@ -513,7 +513,7 @@ bool Instruction::IsFloatingPointFoldingAllowed() const {
|
||||
|
||||
bool is_nocontract = false;
|
||||
context_->get_decoration_mgr()->WhileEachDecoration(
|
||||
opcode_, SpvDecorationNoContraction,
|
||||
result_id(), SpvDecorationNoContraction,
|
||||
[&is_nocontract](const Instruction&) {
|
||||
is_nocontract = true;
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user