HLSL: Fix #1215: propagate error on seeing a type name instead of a variable.
This commit is contained in:
parent
eb2c0c72bf
commit
7420a761a3
1 changed files with 2 additions and 0 deletions
|
|
@ -3051,6 +3051,8 @@ bool HlslGrammar::acceptPostfixExpression(TIntermTyped*& node)
|
||||||
}
|
}
|
||||||
if (! peekTokenClass(EHTokLeftParen)) {
|
if (! peekTokenClass(EHTokLeftParen)) {
|
||||||
node = parseContext.handleVariable(idToken.loc, fullName);
|
node = parseContext.handleVariable(idToken.loc, fullName);
|
||||||
|
if (node == nullptr)
|
||||||
|
return false;
|
||||||
} else if (acceptFunctionCall(idToken.loc, *fullName, node, nullptr)) {
|
} else if (acceptFunctionCall(idToken.loc, *fullName, node, nullptr)) {
|
||||||
// function_call (nothing else to do yet)
|
// function_call (nothing else to do yet)
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue