diff options
author | Corentin Wallez <cwallez@chromium.org> | 2020-09-04 11:04:25 +0300 |
---|---|---|
committer | Corentin Wallez <cwallez@google.com> | 2020-09-04 12:13:21 +0300 |
commit | bcd71536e273749d9a070bc969f40d624f80d112 (patch) | |
tree | 29dd73ece6e1a2f5ee6ea163b57d22d89a25e4dd /spirv_reflect.cpp | |
parent | 7778792aec717e982cbe07009e4db1de706f6619 (diff) |
Fix -Wduplicate-enum and -Wrange-for-analysis.
Diffstat (limited to 'spirv_reflect.cpp')
-rw-r--r-- | spirv_reflect.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spirv_reflect.cpp b/spirv_reflect.cpp index e8891651..cf63aa1a 100644 --- a/spirv_reflect.cpp +++ b/spirv_reflect.cpp @@ -651,7 +651,7 @@ void CompilerReflection::emit_specialization_constants() return; json_stream->emit_json_key_array("specialization_constants"); - for (const auto spec_const : specialization_constants) + for (const auto &spec_const : specialization_constants) { auto &c = get<SPIRConstant>(spec_const.id); auto type = get<SPIRType>(c.constant_type); |