diff options
author | Sebastian Redl <sebastian.redl@getdesigned.at> | 2010-07-20 22:55:31 +0000 |
---|---|---|
committer | Sebastian Redl <sebastian.redl@getdesigned.at> | 2010-07-20 22:55:31 +0000 |
commit | 971dd4498f1118abd12e001add0df06e97669b61 (patch) | |
tree | d97e3825bfb653a161ad33c40724a0f312a148d2 /lib/Frontend/PCHReader.cpp | |
parent | cb526aa1184d2aa19bbfdfb1080f1fc87d9bb711 (diff) |
Apparently not every system thinks that references in pairs are as cool as I think.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108959 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/PCHReader.cpp')
-rw-r--r-- | lib/Frontend/PCHReader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Frontend/PCHReader.cpp b/lib/Frontend/PCHReader.cpp index 532ba444a2..008f58eaea 100644 --- a/lib/Frontend/PCHReader.cpp +++ b/lib/Frontend/PCHReader.cpp @@ -2160,7 +2160,7 @@ PCHReader::RecordLocation PCHReader::TypeCursorForIndex(unsigned Index) { Index -= F->LocalNumTypes; } assert(F && F->LocalNumTypes > Index && "Broken chain"); - return RecordLocation(F->DeclsCursor, F->TypeOffsets[Index]); + return RecordLocation(&F->DeclsCursor, F->TypeOffsets[Index]); } /// \brief Read and return the type with the given index.. @@ -2171,7 +2171,7 @@ PCHReader::RecordLocation PCHReader::TypeCursorForIndex(unsigned Index) { /// IDs. QualType PCHReader::ReadTypeRecord(unsigned Index) { RecordLocation Loc = TypeCursorForIndex(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 type. |