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:
e4e56bc
)
HLSL: Fix #1903 Catch 0-argument case to constructors.
author
John Kessenich
<cepheus@frii.com>
Wed, 18 Sep 2019 06:03:18 +0000
(
00:03
-0600)
committer
John Kessenich
<cepheus@frii.com>
Wed, 18 Sep 2019 06:04:57 +0000
(
00:04
-0600)
hlsl/hlslGrammar.cpp
patch
|
blob
|
history
diff --git
a/hlsl/hlslGrammar.cpp
b/hlsl/hlslGrammar.cpp
index
45cf5d5
..
8ab1a90
100755
(executable)
--- a/
hlsl/hlslGrammar.cpp
+++ b/
hlsl/hlslGrammar.cpp
@@
-3221,6
+3221,11
@@
bool HlslGrammar::acceptConstructor(TIntermTyped*& node)
return false;
}
+ if (arguments == nullptr) {
+ expected("one or more arguments");
+ return false;
+ }
+
// hook it up
node = parseContext.handleFunctionCall(arguments->getLoc(), constructorFunction, arguments);