diff options
Diffstat (limited to 'clang/lib/Parse/ParseStmt.cpp')
-rw-r--r-- | clang/lib/Parse/ParseStmt.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Parse/ParseStmt.cpp b/clang/lib/Parse/ParseStmt.cpp index d83e98d8d83..153aeb824eb 100644 --- a/clang/lib/Parse/ParseStmt.cpp +++ b/clang/lib/Parse/ParseStmt.cpp @@ -1037,11 +1037,11 @@ Parser::OwningStmtResult Parser::FuzzyParseMicrosoftAsmStatement() { // that the rest of the line is an assembly-language statement. SourceManager &SrcMgr = PP.getSourceManager(); SourceLocation TokLoc = Tok.getLocation(); - unsigned lineNo = SrcMgr.getLogicalLineNumber(TokLoc); + unsigned LineNo = SrcMgr.getInstantiationLineNumber(TokLoc); do { ConsumeAnyToken(); TokLoc = Tok.getLocation(); - } while ((SrcMgr.getLogicalLineNumber(TokLoc) == lineNo) && + } while ((SrcMgr.getInstantiationLineNumber(TokLoc) == LineNo) && Tok.isNot(tok::r_brace) && Tok.isNot(tok::semi) && Tok.isNot(tok::eof)); } |