Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Unified Diff: tools/clang/blink_gc_plugin/RecordInfo.cpp

Issue 2536403002: blink_gc_plugin should require tracing for classes that have a trace method
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tools/clang/blink_gc_plugin/RecordInfo.cpp
diff --git a/tools/clang/blink_gc_plugin/RecordInfo.cpp b/tools/clang/blink_gc_plugin/RecordInfo.cpp
index 46b8606a344d06d92c71eafd0cc3c2c5608021da..63967cdcee45b056f410eae5fc276146aaac5fdc 100644
--- a/tools/clang/blink_gc_plugin/RecordInfo.cpp
+++ b/tools/clang/blink_gc_plugin/RecordInfo.cpp
@@ -287,7 +287,7 @@ bool RecordInfo::RequiresTraceMethod() {
if (bases_with_trace > 1)
return true;
GetFields();
- return fields_need_tracing_.IsNeeded();
+ return fields_need_tracing_.IsNeeded() || GetTraceMethod();
}
// Get the actual tracing method (ie, can be traceAfterDispatch if there is a

Powered by Google App Engine
This is Rietveld 408576698