Skip to content

Commit

Permalink
Only count framePointerMeta with non-null framePointer
Browse files Browse the repository at this point in the history
  • Loading branch information
JaroslavTulach committed Aug 29, 2024
1 parent 2765faf commit 03c5bd5
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,11 @@ class FramePointerAnalysisTest extends CompilerTest {
ir.preorder().flatMap { childIr =>
childIr.getMetadata(FramePointerAnalysis) match {
case Some(framePointerMeta: FramePointerAnalysis.Metadata) =>
Some((childIr, framePointerMeta))
if (framePointerMeta.framePointer != null) {
Some((childIr, framePointerMeta))
} else {
None
}
case _ => None
}
}
Expand Down

0 comments on commit 03c5bd5

Please sign in to comment.