Handle function reference expressions in the inliner
Bug: oss-fuzz:25395 Change-Id: Ifd9bcb1e8e510488e43fde359f011800c8647435 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/315557 Commit-Queue: Brian Osman <brianosman@google.com> Commit-Queue: John Stiles <johnstiles@google.com> Auto-Submit: Brian Osman <brianosman@google.com> Reviewed-by: John Stiles <johnstiles@google.com>
This commit is contained in:
parent
cd54c8385c
commit
2b3b35f838
@ -235,6 +235,8 @@ std::unique_ptr<Expression> Inliner::inlineExpression(int offset,
|
||||
return std::make_unique<FunctionCall>(offset, funcCall.fType, funcCall.fFunction,
|
||||
argList(funcCall.fArguments));
|
||||
}
|
||||
case Expression::kFunctionReference_Kind:
|
||||
return expression.clone();
|
||||
case Expression::kIndex_Kind: {
|
||||
const IndexExpression& idx = expression.as<IndexExpression>();
|
||||
return std::make_unique<IndexExpression>(*fContext, expr(idx.fBase), expr(idx.fIndex));
|
||||
|
Loading…
Reference in New Issue
Block a user