Files
llvm-project/llvm/lib/Support/SourceMgr.cpp
Jan Svoboda 8fe71e0bdf [support] Don't require VFS in SourceMgr for loading includes (#163862)
This commit more gracefully handles situations where `SourceMgr` isn't
initialized with a VFS and tries to resolve an include. That's what
happens with the test case `clang -flto=thin -c test.c -o /dev/null`
where test.c contains `asm(" .incbin \"foo.i\" \n");`. Propagating the
actual VFS all the way is very difficult.

This is a follow-up to #162903.
2025-10-17 08:12:34 -07:00

22 KiB