Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 25522e87ec0b128fd4f020486e4fbb06c5162a8a..7e9e97e58d90f59fb1722f2d0f07d96ffd5780d9 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -6358,7 +6358,7 @@ bool HOptimizedGraphBuilder::TryInline(CallKind call_kind, |
return false; |
} |
AstProperties::Flags* flags(function->flags()); |
- if (flags->Contains(kDontInline) || flags->Contains(kDontOptimize)) { |
+ if (flags->Contains(kDontInline) || function->dont_optimize()) { |
TraceInline(target, caller, "target contains unsupported syntax [late]"); |
return false; |
} |