• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

rieske / trans / 35727048796

22 Sep 2026 12:24PM UTC coverage: 94.656% (+0.001%) from 94.655%
35727048796

Pull #378

github

rieske
fix: home the sret pointer before the function body

The hidden return pointer arrives in rdi and is not an IR value, so a
control-flow edge drops it without writing its home. The epilogue then
stores the struct through that slot. Straight-line returns kept rdi
live, so the existing sret tests passed. An untaken branch crashes at
-O0 and at -O1 when the callee is not inlined.

Write rdi into the sret slot in the prologue, before the body.

make(0) on a 24-byte struct prints 7 8 9.
Pull Request #378: fix: home the sret pointer before the function body

17304 of 18281 relevant lines covered (94.66%)

147242.66 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

95.24
/home/runner/work/trans/trans/src/codegen/StackMachine.cpp


Source Not Available

The file "home/runner/work/trans/trans/src/codegen/StackMachine.cpp" isn't available on github. Either it's been removed, or the repo root directory needs to be updated.

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc