This is an archive of the discontinued LLVM Phabricator instance.

Fix Stmt::ignoreImplicit
ClosedPublic

Authored by steveire on Aug 13 2018, 2:42 PM.

Details

Summary

A CXXBindTemporaryExpr can appear inside an ImplicitCastExpr, and was
not ignored previously.

Fixes the case reported in PR37327.

Diff Detail

Repository
rL LLVM

Event Timeline

steveire created this revision.Aug 13 2018, 2:42 PM
rsmith accepted this revision.Aug 13 2018, 3:14 PM
rsmith added inline comments.
lib/AST/Stmt.cpp
121–122 ↗(On Diff #160452)

ExprWithCleanups can only appear at the top level. But... maybe it's not worth treating that as a special case.

This revision is now accepted and ready to land.Aug 13 2018, 3:14 PM
This revision was automatically updated to reflect the committed changes.