mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-12-27 02:10:15 +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