HLSL: Fix #1215: propagate error on seeing a type name instead of a variable.
This commit is contained in:
parent
eb2c0c72bf
commit
7420a761a3
@ -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…
x
Reference in New Issue
Block a user