diff options
author | John McCall <rjmccall@apple.com> | 2009-11-04 07:28:41 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2009-11-04 07:28:41 +0000 |
commit | 5ab75172051a6d2ea71a80a79e81c65519fd3462 (patch) | |
tree | e03271bc6d106935276fbc951192f7e85b3f1a5b /lib/Frontend/PCHReaderStmt.cpp | |
parent | c86a6e988184867b09aa17a619402d0e81d0fda0 (diff) |
Preserve type source information in sizeof/alignof expressions, and pass it
through to indexing.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86018 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/PCHReaderStmt.cpp')
-rw-r--r-- | lib/Frontend/PCHReaderStmt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Frontend/PCHReaderStmt.cpp b/lib/Frontend/PCHReaderStmt.cpp index 60f6d19600..01af67dd50 100644 --- a/lib/Frontend/PCHReaderStmt.cpp +++ b/lib/Frontend/PCHReaderStmt.cpp @@ -424,7 +424,7 @@ unsigned PCHStmtReader::VisitSizeOfAlignOfExpr(SizeOfAlignOfExpr *E) { E->setArgument(cast<Expr>(StmtStack.back())); ++Idx; } else { - E->setArgument(Reader.GetType(Record[Idx++])); + E->setArgument(Reader.GetDeclaratorInfo(Record, Idx)); } E->setOperatorLoc(SourceLocation::getFromRawEncoding(Record[Idx++])); E->setRParenLoc(SourceLocation::getFromRawEncoding(Record[Idx++])); |