| Index: tools/clang/blink_gc_plugin/CheckFieldsVisitor.cpp
|
| diff --git a/tools/clang/blink_gc_plugin/CheckFieldsVisitor.cpp b/tools/clang/blink_gc_plugin/CheckFieldsVisitor.cpp
|
| index e609a9706d58f7375c8897dd3cc40683772c0336..e5d69f0b897c0a13e8b0b0cbdc2b544632b38272 100644
|
| --- a/tools/clang/blink_gc_plugin/CheckFieldsVisitor.cpp
|
| +++ b/tools/clang/blink_gc_plugin/CheckFieldsVisitor.cpp
|
| @@ -86,7 +86,7 @@ void CheckFieldsVisitor::AtValue(Value* edge) {
|
|
|
| // Disallow OwnPtr<T>, RefPtr<T> and T* to stack-allocated types.
|
| if (Parent()->IsOwnPtr() ||
|
| - (Parent()->IsRefPtr() && !edge->value()->IsGCRefCounted()) ||
|
| + Parent()->IsRefPtr() ||
|
| (stack_allocated_host_ && Parent()->IsRawPtr())) {
|
| invalid_fields_.push_back(std::make_pair(
|
| current_, InvalidSmartPtr(Parent())));
|
|
|