diff options
| author | David Blaikie <dblaikie@gmail.com> | 2012-11-07 00:12:38 +0000 |
|---|---|---|
| committer | David Blaikie <dblaikie@gmail.com> | 2012-11-07 00:12:38 +0000 |
| commit | 530564196fe7e2e30fbc2b0edae45975447583e0 (patch) | |
| tree | 85f7869e79254b1fdb86c01d404661c1437e5271 /lib/Serialization/ASTWriterStmt.cpp | |
| parent | 70a01898008a90007866f15c4d9d53ba00b0d203 (diff) | |
| download | clang-530564196fe7e2e30fbc2b0edae45975447583e0.tar.gz clang-530564196fe7e2e30fbc2b0edae45975447583e0.tar.bz2 clang-530564196fe7e2e30fbc2b0edae45975447583e0.tar.xz | |
PR13552: Fix the end location of a CXXNewExpr.
Spent longer than reasonable looking for a nice way to test this & decided to
give up for now. Open to suggestions/requests. Richard Smith suggested adding
something to ASTMatchers but it wasn't readily apparent how to test this with
that.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167507 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Serialization/ASTWriterStmt.cpp')
| -rw-r--r-- | lib/Serialization/ASTWriterStmt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Serialization/ASTWriterStmt.cpp b/lib/Serialization/ASTWriterStmt.cpp index 121d4d6dcd..b1ee84b29e 100644 --- a/lib/Serialization/ASTWriterStmt.cpp +++ b/lib/Serialization/ASTWriterStmt.cpp @@ -1236,7 +1236,7 @@ void ASTStmtWriter::VisitCXXNewExpr(CXXNewExpr *E) { Writer.AddDeclRef(E->getOperatorDelete(), Record); Writer.AddTypeSourceInfo(E->getAllocatedTypeSourceInfo(), Record); Writer.AddSourceRange(E->getTypeIdParens(), Record); - Writer.AddSourceLocation(E->getStartLoc(), Record); + Writer.AddSourceRange(E->getSourceRange(), Record); Writer.AddSourceRange(E->getDirectInitRange(), Record); for (CXXNewExpr::arg_iterator I = E->raw_arg_begin(), e = E->raw_arg_end(); I != e; ++I) |
