diff options
author | Jamie Madill <jmadill@chromium.org> | 2016-11-09 13:49:24 -0500 |
---|---|---|
committer | Jamie Madill <jmadill@chromium.org> | 2016-11-09 13:49:24 -0500 |
commit | 57cb69a3f13705c8cf4b84bd4551a30f165bddce (patch) | |
tree | 16cd06c2f4c5a95072b0ea9ba927894492b94473 | |
parent | e5e58cfee34dfd6126a770b4250c14ea9340a231 (diff) | |
download | glslang-57cb69a3f13705c8cf4b84bd4551a30f165bddce.tar.gz |
Fix unrefenced variable warning with AMD_EXTENSIONS disabled.
-rwxr-xr-x | SPIRV/GlslangToSpv.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/SPIRV/GlslangToSpv.cpp b/SPIRV/GlslangToSpv.cpp index 3e0ad4f1..ebf8c5d8 100755 --- a/SPIRV/GlslangToSpv.cpp +++ b/SPIRV/GlslangToSpv.cpp @@ -4118,11 +4118,9 @@ spv::Id TGlslangToSpvTraverser::createAtomicOperation(glslang::TOperator op, spv // Create group invocation operations. spv::Id TGlslangToSpvTraverser::createInvocationsOperation(glslang::TOperator op, spv::Id typeId, std::vector<spv::Id>& operands, glslang::TBasicType typeProxy) { - bool isUnsigned = typeProxy == glslang::EbtUint || typeProxy == glslang::EbtUint64; #ifdef AMD_EXTENSIONS + bool isUnsigned = typeProxy == glslang::EbtUint || typeProxy == glslang::EbtUint64; bool isFloat = typeProxy == glslang::EbtFloat || typeProxy == glslang::EbtDouble || typeProxy == glslang::EbtFloat16; -#else - bool isFloat = typeProxy == glslang::EbtFloat || typeProxy == glslang::EbtDouble; #endif spv::Op opCode = spv::OpNop; |