Commit 72ba85bf by Olli Etuaho Committed by Zhenyao Mo

Fix regression in addFunctionCallOrMethod

Fix a crash when parsing a shader with incorrect constructor arguments. BUG=angleproject:911 TEST=WebGL conformance tests Change-Id: I3459612f36185db861a361fa916cc6b671795037 Reviewed-on: https://chromium-review.googlesource.com/255870Reviewed-by: 's avatarZhenyao Mo <zmo@chromium.org> Tested-by: 's avatarZhenyao Mo <zmo@chromium.org>
parent 95cd3c68
...@@ -2815,7 +2815,8 @@ TIntermTyped *TParseContext::addFunctionCallOrMethod(TFunction *fnCall, TIntermN ...@@ -2815,7 +2815,8 @@ TIntermTyped *TParseContext::addFunctionCallOrMethod(TFunction *fnCall, TIntermN
// //
callNode = addConstructor(node, &type, op, fnCall, loc); callNode = addConstructor(node, &type, op, fnCall, loc);
} }
else
if (callNode == nullptr)
{ {
recover(); recover();
callNode = intermediate.setAggregateOperator(nullptr, op, loc); callNode = intermediate.setAggregateOperator(nullptr, op, loc);
......
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