HomePhabricator

[AST] Fix potential nullptr dereference in Expr::HasSideEffects

Authored by jkorous on Jul 8 2020, 3:16 PM.

Description

[AST] Fix potential nullptr dereference in Expr::HasSideEffects

Array returned by LambdaExpr::capture_inits() can contain nullptrs.

Differential Revision: https://reviews.llvm.org/D83438

Details