Index: tools/clang/blink_gc_plugin/BlinkGCPluginConsumer.cpp |
diff --git a/tools/clang/blink_gc_plugin/BlinkGCPluginConsumer.cpp b/tools/clang/blink_gc_plugin/BlinkGCPluginConsumer.cpp |
index c15b8e8f2bb7e9454b7482e0f08a730cdec83055..28af4bc098c5aa62af72bed93d51b7b8f0cb722c 100644 |
--- a/tools/clang/blink_gc_plugin/BlinkGCPluginConsumer.cpp |
+++ b/tools/clang/blink_gc_plugin/BlinkGCPluginConsumer.cpp |
@@ -181,6 +181,8 @@ void BlinkGCPluginConsumer::CheckClass(RecordInfo* info) { |
return; |
if (CXXMethodDecl* trace = info->GetTraceMethod()) { |
+ if (options_.warn_stack_allocated_trace_method && info->IsStackAllocated()) |
+ reporter_.TraceMethodForStackAllocatedClass(info, trace); |
if (trace->isPure()) |
reporter_.ClassDeclaresPureVirtualTrace(info, trace); |
} else if (info->RequiresTraceMethod()) { |