GCC 12 fixes

This commit is contained in:
Liam 2022-04-28 13:22:34 -04:00
parent a7f7279d9d
commit 709d7fd92c
4 changed files with 5 additions and 5 deletions

View file

@ -43,7 +43,7 @@ static void ValidateUses(const IR::Program& program) {
}
}
}
for (const auto [inst, uses] : actual_uses) {
for (const auto& [inst, uses] : actual_uses) {
if (inst->UseCount() != uses) {
throw LogicError("Invalid uses in block: {}", IR::DumpProgram(program));
}