mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-11-22 19:50:05 +00:00
Capturing value table by reference in local redundancy elim
This commit is contained in:
parent
ae6daeed99
commit
3a0eb44da3
@ -43,7 +43,7 @@ bool LocalRedundancyEliminationPass::EliminateRedundanciesInBB(
|
||||
std::map<uint32_t, uint32_t>* value_to_ids) {
|
||||
bool modified = false;
|
||||
|
||||
auto func = [this, vnTable, &modified, value_to_ids](ir::Instruction* inst) {
|
||||
auto func = [this, &vnTable, &modified, value_to_ids](ir::Instruction* inst) {
|
||||
if (inst->result_id() == 0) {
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user