mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2025-01-12 01:20:05 +00:00
Avoid copying a ref in a loop (#4000)
Avoid triggering a warning from newer Clang, which turns into an error on macOS.
This commit is contained in:
parent
5edb328e81
commit
25ee275763
@ -127,7 +127,7 @@ class CFA {
|
||||
template <class BB>
|
||||
bool CFA<BB>::FindInWorkList(const std::vector<block_info>& work_list,
|
||||
uint32_t id) {
|
||||
for (auto& b : work_list) {
|
||||
for (const auto& b : work_list) {
|
||||
if (b.block->id() == id) return true;
|
||||
}
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user