Skip to content

Commit 238f963

Browse files
committed
Change to AbsolutePosition like file/line/column
1 parent 0c1033a commit 238f963

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/Sema/TypeCheckExpr.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -719,9 +719,10 @@ static SourceFile *createDefaultArgumentSourceFile(StringRef macroExpression,
719719

720720
llvm::SmallString<256> builder;
721721
unsigned line, column;
722-
std::tie(line, column) =
723-
sourceMgr.getPresumedLineAndColumnForLoc(insertionPoint);
724-
auto file = dc->getOutermostParentSourceFile()->getFilename();
722+
// TODO: ApolloZhu check getPresumedLineAndColumnForLoc
723+
std::tie(line, column) = sourceMgr.getLineAndColumnInBuffer(insertionPoint);
724+
// TODO: ApolloZhu check getVirtualFile/getOutermostParentSourceFile
725+
auto file = dc->getParentSourceFile()->getFilename();
725726

726727
// find a way to pass the file:line:column to macro expansion
727728
// so that we can share same buffer for the same default argument

0 commit comments

Comments
 (0)