This is an archive of the discontinued LLVM Phabricator instance.

Remove LazyDefinitionDataPtr and rely on getMostRecentDecl. Fixes PR27754.
ClosedPublic

Authored by v.g.vassilev on May 16 2016, 2:41 PM.

Details

Reviewers
rsmith

Diff Detail

Repository
rL LLVM

Event Timeline

v.g.vassilev retitled this revision from to Remove LazyDefinitionDataPtr and rely on getMostRecentDecl. Fixes PR27754..
v.g.vassilev updated this object.
v.g.vassilev added a reviewer: rsmith.
v.g.vassilev set the repository for this revision to rL LLVM.
v.g.vassilev added a subscriber: cfe-commits.
rsmith added inline comments.May 16 2016, 2:47 PM
include/clang/AST/DeclCXX.h
522

Does this still need to be mutable?

Also, you need to use struct DefinitionData *DefinitionData; here or this is ill-formed (no diagnostic required) by [basic.scope.class]p1 rule 2.

672

This also needs to perform an update. Maybe factor out a function for this and data() to call?

676

Likewise, we need an update here if DefinitionData is null.

rsmith accepted this revision.May 17 2016, 4:00 PM
rsmith edited edge metadata.

Review comments resolved and committed as r269858.

This revision is now accepted and ready to land.May 17 2016, 4:01 PM
rsmith closed this revision.May 17 2016, 4:01 PM