diff options
author | Chris Lattner <sabre@nondot.org> | 2009-06-12 23:04:47 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-06-12 23:04:47 +0000 |
commit | 989135901c750af61ef012b6b0a0368be415bc46 (patch) | |
tree | df767b7ae06e19ba40fa0ca0dd5d064efa3325a0 /lib/Frontend/PCHWriterStmt.cpp | |
parent | 9a917e4fac79aba20fbd25983c78396475078918 (diff) |
add the location of the ')' in a do/while statement to DoStmt.
This fixes a source range problem reported by Olaf Krzikalla.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73266 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/PCHWriterStmt.cpp')
-rw-r--r-- | lib/Frontend/PCHWriterStmt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Frontend/PCHWriterStmt.cpp b/lib/Frontend/PCHWriterStmt.cpp index b7caee5e55..73dea1061c 100644 --- a/lib/Frontend/PCHWriterStmt.cpp +++ b/lib/Frontend/PCHWriterStmt.cpp @@ -23,7 +23,6 @@ using namespace clang; namespace { class PCHStmtWriter : public StmtVisitor<PCHStmtWriter, void> { - PCHWriter &Writer; PCHWriter::RecordData &Record; @@ -197,6 +196,7 @@ void PCHStmtWriter::VisitDoStmt(DoStmt *S) { Writer.WriteSubStmt(S->getBody()); Writer.AddSourceLocation(S->getDoLoc(), Record); Writer.AddSourceLocation(S->getWhileLoc(), Record); + Writer.AddSourceLocation(S->getRParenLoc(), Record); Code = pch::STMT_DO; } |