Assert that position is within buffer bounds in BridgedSourceLoc.init
#68610
Labels
ASTGen
Area → compiler: The ASTGen module, which translates SwiftSyntax trees to the C++ AST
compiler
The Swift compiler itself
good first issue
Good for newcomers
task
Currently, we construct a null location if the input position is out of bounds, meaning the position is invalid or the buffer is null/wrong. Neither is ever expected to happen in ASTGen, and if it does, we don’t want it to go unnoticed or cause a less informative failure downstream.
The text was updated successfully, but these errors were encountered: