llvm-project
ab10f084 - [CIR] Fix a crash when source location is unknown (#185059)

Commit
2 days ago
[CIR] Fix a crash when source location is unknown (#185059) When we call `getLoc()` with an invalid `SourceLocation` and `currSrcLoc` is also invalid, we were crashing or asserting. I tracked down one case where this was happening (generating an argument in a vtable thunk) and fixed that to provide a location. I also am updating the `getLoc()` implementation so that it will use an unknown location in release builds rather than crashing because the location isn't critical for correct compilation.
Author
Parents
Loading