aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Kessenich <johnkslang@users.noreply.github.com>2016-11-13 22:04:04 -0700
committerGitHub <noreply@github.com>2016-11-13 22:04:04 -0700
commit84d11e1859fe1b5261268ed9e030ba34c154a1b6 (patch)
tree98d34450478c6f9cc717c173a9771ab4351e747a
parent610ff835c9e6c5fc01743404dd4160109b9c31a8 (diff)
parent57cb69a3f13705c8cf4b84bd4551a30f165bddce (diff)
downloadglslang-84d11e1859fe1b5261268ed9e030ba34c154a1b6.tar.gz
Merge pull request #583 from null77/fix-unref-warning
SPV: Fix unreferenced 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;