Index: src/compiler/linkage-impl.h |
diff --git a/src/compiler/linkage-impl.h b/src/compiler/linkage-impl.h |
index 0a18f6e8db21301d833ab31ed8746e745d11d40f..a648148be4b57c9f2fc9a65f64e83e04ed99e126 100644 |
--- a/src/compiler/linkage-impl.h |
+++ b/src/compiler/linkage-impl.h |
@@ -115,7 +115,7 @@ class LinkageHelper { |
locations.AddParam(regloc(LinkageTraits::ContextReg())); |
types.AddParam(kMachAnyTagged); |
- CallDescriptor::Flags flags = Linkage::NeedsFrameState(function_id) |
+ CallDescriptor::Flags flags = Linkage::FrameStateInputCount(function_id) > 0 |
? CallDescriptor::kNeedsFrameState |
: CallDescriptor::kNoFlags; |