Skip to content
Snippets Groups Projects
Commit 7420a761 authored by John Kessenich's avatar John Kessenich
Browse files

HLSL: Fix #1215: propagate error on seeing a type name instead of a variable.

parent eb2c0c72
No related branches found
No related tags found
No related merge requests found
......@@ -3051,6 +3051,8 @@ bool HlslGrammar::acceptPostfixExpression(TIntermTyped*& node)
}
if (! peekTokenClass(EHTokLeftParen)) {
node = parseContext.handleVariable(idToken.loc, fullName);
if (node == nullptr)
return false;
} else if (acceptFunctionCall(idToken.loc, *fullName, node, nullptr)) {
// function_call (nothing else to do yet)
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment