projects
/
platform
/
upstream
/
glslang.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d509a5e
)
Handle potentially uninitialized result
author
Dan Sinclair
<dsinclair@chromium.org>
Mon, 12 Nov 2018 18:56:52 +0000
(13:56 -0500)
committer
Dan Sinclair
<dsinclair@chromium.org>
Mon, 12 Nov 2018 18:56:52 +0000
(13:56 -0500)
SPIRV/GlslangToSpv.cpp
patch
|
blob
|
history
diff --git
a/SPIRV/GlslangToSpv.cpp
b/SPIRV/GlslangToSpv.cpp
index 632a21752b1e709560bcc0ac9acf4a957ebc09ee..f0da850525fbae2fab83d7d82811b0c8e11fa033 100755
(executable)
--- a/
SPIRV/GlslangToSpv.cpp
+++ b/
SPIRV/GlslangToSpv.cpp
@@
-7302,6
+7302,10
@@
spv::Id TGlslangToSpvTraverser::createSpvConstant(const glslang::TIntermTyped& n
} else if (auto* const_union_array = &sn->getConstArray()) {
int nextConst = 0;
result = createSpvConstantFromConstUnionArray(sn->getType(), *const_union_array, nextConst, true);
+ } else {
+ logger->missingFunctionality("Invalid initializer for spec onstant.");
+ exit(1);
+ return spv::NoResult;
}
builder.addName(result, sn->getName().c_str());
return result;