Skip to content

Commit d61d421

Browse files
author
amimo
committed
no need to compile synthetic methods
1 parent 3695e6a commit d61d421

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

dcc.py

+7-3
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,10 @@ def should_compile(self, method):
142142
if method in self.conflict_methods:
143143
return False
144144

145+
# synthetic method
146+
if method.get_access_flags() & 0x1000:
147+
return False
148+
145149
method_triple = get_method_triple(method)
146150
cls_name, name, _ = method_triple
147151

@@ -151,13 +155,13 @@ def should_compile(self, method):
151155
return False
152156

153157
full_name = ''.join(method_triple)
154-
if full_name in self._compile_full_match:
155-
return True
156-
157158
for rule in self._keep_filters:
158159
if rule.search(full_name):
159160
return False
160161

162+
if full_name in self._compile_full_match:
163+
return True
164+
161165
for rule in self._compile_filters:
162166
if rule.search(full_name):
163167
return True

0 commit comments

Comments
 (0)