[llvm] [lit] Don't crash in _write_message when getsourcefile() returns None (PR #206957)

Aiden Grossman via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 13 07:20:22 PDT 2026


https://github.com/boomanaiden154 commented:

It's unclear to me exactly how this comes up with pyz/par files. I was under the impression that in such cases `inspect.getsourcefile` just returns the in-archive path.

It's also not clear to me what you mean by the calling frame's source not being on disk. How exactly is the code getting executed if it's not mounted somewhere? Even if you're working with a par/pyz, the files still need to get mounted somewhere.

https://github.com/llvm/llvm-project/pull/206957


More information about the llvm-commits mailing list