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 | 815b70efcddcd7edbb3888104c85cfdd44dd72f0 (patch) | |
tree | af036c8e8c2829161fca8563cc16ab1d8e360db8 /clang/lib/Frontend/PCHWriterStmt.cpp | |
parent | 9fd76cc19cc7c81337bc7df0182ff304cce3d254 (diff) | |
download | bcm5719-llvm-815b70efcddcd7edbb3888104c85cfdd44dd72f0.tar.gz bcm5719-llvm-815b70efcddcd7edbb3888104c85cfdd44dd72f0.zip |
add the location of the ')' in a do/while statement to DoStmt.
This fixes a source range problem reported by Olaf Krzikalla.
llvm-svn: 73266
Diffstat (limited to 'clang/lib/Frontend/PCHWriterStmt.cpp')
-rw-r--r-- | clang/lib/Frontend/PCHWriterStmt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/PCHWriterStmt.cpp b/clang/lib/Frontend/PCHWriterStmt.cpp index b7caee5e551..73dea1061c2 100644 --- a/clang/lib/Frontend/PCHWriterStmt.cpp +++ b/clang/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; } |