instead of getLocation() since we don't care about expanded macro arguments.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140061
91177308-0d34-0410-b5e6-
96231b3b80d8
TheModule.reset(ParseIR(MainFileCopy, Err, *VMContext));
if (!TheModule) {
// Translate from the diagnostic info to the SourceManager location.
- SourceLocation Loc = SM.getLocation(
+ SourceLocation Loc = SM.translateFileLineCol(
SM.getFileEntryForID(SM.getMainFileID()), Err.getLineNo(),
Err.getColumnNo() + 1);