summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/PCHReaderDecl.cpp
diff options
context:
space:
mode:
authorSebastian Redl <sebastian.redl@getdesigned.at>2010-07-20 22:55:31 +0000
committerSebastian Redl <sebastian.redl@getdesigned.at>2010-07-20 22:55:31 +0000
commitb2831dbff741d7c1f6acc438fac69b919abfb2b1 (patch)
treee564db4c246691ed331d94110a0a3b8cdc34aec1 /clang/lib/Frontend/PCHReaderDecl.cpp
parentede0585ec2d78091eed23074cb7d53668ff194c6 (diff)
downloadbcm5719-llvm-b2831dbff741d7c1f6acc438fac69b919abfb2b1.tar.gz
bcm5719-llvm-b2831dbff741d7c1f6acc438fac69b919abfb2b1.zip
Apparently not every system thinks that references in pairs are as cool as I think.
llvm-svn: 108959
Diffstat (limited to 'clang/lib/Frontend/PCHReaderDecl.cpp')
-rw-r--r--clang/lib/Frontend/PCHReaderDecl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Frontend/PCHReaderDecl.cpp b/clang/lib/Frontend/PCHReaderDecl.cpp
index a4c0d8df9a3..8ea75b72706 100644
--- a/clang/lib/Frontend/PCHReaderDecl.cpp
+++ b/clang/lib/Frontend/PCHReaderDecl.cpp
@@ -1264,13 +1264,13 @@ PCHReader::RecordLocation PCHReader::DeclCursorForIndex(unsigned Index) {
Index -= F->LocalNumDecls;
}
assert(F && F->LocalNumDecls > Index && "Broken chain");
- return RecordLocation(F->DeclsCursor, F->DeclOffsets[Index]);
+ return RecordLocation(&F->DeclsCursor, F->DeclOffsets[Index]);
}
/// \brief Read the declaration at the given offset from the PCH file.
Decl *PCHReader::ReadDeclRecord(unsigned Index) {
RecordLocation Loc = DeclCursorForIndex(Index);
- llvm::BitstreamCursor &DeclsCursor = Loc.first;
+ llvm::BitstreamCursor &DeclsCursor = *Loc.first;
// Keep track of where we are in the stream, then jump back there
// after reading this declaration.
SavedStreamPosition SavedPosition(DeclsCursor);
OpenPOWER on IntegriCloud