Commit 54c72c6d by John Kessenich

HLSL: Fix #1903 Catch 0-argument case to constructors.

parent e4e56bcf
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment