mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[SourceManager] Rename line and column APIs for clarity
This commit is contained in:
@@ -864,7 +864,8 @@ int dumpEOFSourceLoc(const char *MainExecutablePath,
|
||||
|
||||
// To ensure the correctness of position when translated to line & column
|
||||
// pair.
|
||||
if (SourceMgr.getLineAndColumn(EndLoc) != AbPos.getLineAndColumn()) {
|
||||
if (SourceMgr.getPresumedLineAndColumnForLoc(EndLoc) !=
|
||||
AbPos.getLineAndColumn()) {
|
||||
llvm::outs() << "locations should be identical";
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user