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/PCHReaderStmt.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/PCHReaderStmt.cpp')
-rw-r--r-- | clang/lib/Frontend/PCHReaderStmt.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Frontend/PCHReaderStmt.cpp b/clang/lib/Frontend/PCHReaderStmt.cpp index 10059f609b1..e6871e3a0eb 100644 --- a/clang/lib/Frontend/PCHReaderStmt.cpp +++ b/clang/lib/Frontend/PCHReaderStmt.cpp @@ -210,6 +210,7 @@ unsigned PCHStmtReader::VisitDoStmt(DoStmt *S) { S->setBody(StmtStack.back()); S->setDoLoc(SourceLocation::getFromRawEncoding(Record[Idx++])); S->setWhileLoc(SourceLocation::getFromRawEncoding(Record[Idx++])); + S->setRParenLoc(SourceLocation::getFromRawEncoding(Record[Idx++])); return 2; } |