[PATCH] D39800: [analyzer] pr34404: Fix a crash on pointers to members in nested anonymous structures.

Devin Coughlin via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 10 11:00:45 PST 2017


dcoughlin accepted this revision.
dcoughlin added a comment.

LGTM.

I suppose we could move the logic that constructs pointers to members for fields here (right now that logic is in ExprEngine::VisitUnaryOperator()'s handling of '&'). However, since the AST's DeclRefExpr for the field is marked as an lvalue this would be slightly odd -- we would have the value of an lvalue expression be a non-Loc.


https://reviews.llvm.org/D39800





More information about the cfe-commits mailing list