memory_read_error -> memory_write_error
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM.
I think the Read/Write methods should return a Status instead of some out parameter, but that seems like a NFC follow-up refactoring (I can take care of that).
Comment Actions
I would be curious how you found that bug? I believe a lot of these errors are kinda impossible to reach in a normal test setup (I remember I tried writing some tests for this but can't remember finding a good way to get into all the different error branches in IRInterpreter).
Comment Actions
I was looking into the issue with SBValue::Persist (https://discord.com/channels/636084430946959380/636732809708306432/817370459284832297) and the logs and errors eventually led me here to IRInterpreter. And the incorrect error message I noticed just by accident :)