[SR-6429] "input file '%0' was modified during the build" should have a valid source location #48979
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
legacy driver
Area → compiler: the integrated C++ legacy driver. Succeeded by the swift-driver project
Additional Detail from JIRA
md5: 6e9a603a53b8f28961459f7e82981221
Issue Description:
The Swift compiler checks to see if inputs were modified during the build, and produces an error if they were. This logic is in
checkForOutOfDateInputs
in Compilation.cpp. However, the diagnostic is emitted with an invalid location (SourceLoc()
). In theory, it would make sense to emit it on the first line of the file that changed, as well as any similar diagnostics about a textual input file. However, we don't have a SourceLoc for that file, because we haven't loaded the file into the driver.We should do something about this.
The text was updated successfully, but these errors were encountered: