Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/KhronosGroup/SPIRV-Cross.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorentin Wallez <cwallez@chromium.org>2020-09-04 11:04:25 +0300
committerCorentin Wallez <cwallez@google.com>2020-09-04 12:13:21 +0300
commitbcd71536e273749d9a070bc969f40d624f80d112 (patch)
tree29dd73ece6e1a2f5ee6ea163b57d22d89a25e4dd /spirv_reflect.cpp
parent7778792aec717e982cbe07009e4db1de706f6619 (diff)
Fix -Wduplicate-enum and -Wrange-for-analysis.
Diffstat (limited to 'spirv_reflect.cpp')
-rw-r--r--spirv_reflect.cpp2
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);