mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #31943 from owenv/line-and-col
This commit is contained in:
@@ -849,7 +849,7 @@ SourceFile::getBasicLocsForDecl(const Decl *D) const {
|
||||
|
||||
auto setLineColumn = [&SM](LineColumn &Home, SourceLoc Loc) {
|
||||
if (Loc.isValid()) {
|
||||
std::tie(Home.Line, Home.Column) = SM.getLineAndColumn(Loc);
|
||||
std::tie(Home.Line, Home.Column) = SM.getPresumedLineAndColumnForLoc(Loc);
|
||||
}
|
||||
};
|
||||
#define SET(X) setLineColumn(Result.X, D->get##X());
|
||||
|
||||
Reference in New Issue
Block a user