aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJamie Madill <jmadill@chromium.org>2016-11-09 13:49:24 -0500
committerJamie Madill <jmadill@chromium.org>2016-11-09 13:49:24 -0500
commit57cb69a3f13705c8cf4b84bd4551a30f165bddce (patch)
tree16cd06c2f4c5a95072b0ea9ba927894492b94473
parente5e58cfee34dfd6126a770b4250c14ea9340a231 (diff)
downloadglslang-57cb69a3f13705c8cf4b84bd4551a30f165bddce.tar.gz
Fix unrefenced variable warning with AMD_EXTENSIONS disabled.
-rwxr-xr-xSPIRV/GlslangToSpv.cpp4
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;