| Index: tools/clang/blink_gc_plugin/BlinkGCPlugin.cpp
|
| diff --git a/tools/clang/blink_gc_plugin/BlinkGCPlugin.cpp b/tools/clang/blink_gc_plugin/BlinkGCPlugin.cpp
|
| index d57d7d70a2979308e10673c84af1eaa362149477..4b023c3a9d46e7ffe5b7648f14cf09e7fdc38a1b 100644
|
| --- a/tools/clang/blink_gc_plugin/BlinkGCPlugin.cpp
|
| +++ b/tools/clang/blink_gc_plugin/BlinkGCPlugin.cpp
|
| @@ -503,9 +503,7 @@ class CheckFieldsVisitor : public RecursiveEdgeVisitor {
|
| if (options_.enable_oilpan) {
|
| if (Parent()->IsOwnPtr() ||
|
| Parent()->IsRawPtrClass() ||
|
| - (stack_allocated_host_ && Parent()->IsRawPtr() &&
|
| - // TODO: Remove this exception once the node hierarchy is moved.
|
| - !edge->value()->IsTreeShared())) {
|
| + (stack_allocated_host_ && Parent()->IsRawPtr())) {
|
| invalid_fields_.push_back(std::make_pair(current_, Parent()));
|
| return;
|
| }
|
| @@ -726,8 +724,7 @@ class BlinkGCPluginConsumer : public ASTConsumer {
|
| if (CXXMethodDecl* newop = info->DeclaresNewOperator())
|
| ReportClassOverridesNew(info, newop);
|
|
|
| - // TODO: Remove this exception once TreeShared is properly traced.
|
| - if (!info->IsTreeShared()) {
|
| + {
|
| CheckGCRootsVisitor visitor;
|
| if (visitor.ContainsGCRoots(info))
|
| ReportClassContainsGCRoots(info, &visitor.gc_roots());
|
|
|