aboutsummaryrefslogtreecommitdiff
path: root/lib/Frontend/PCHWriterDecl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Frontend/PCHWriterDecl.cpp')
-rw-r--r--lib/Frontend/PCHWriterDecl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Frontend/PCHWriterDecl.cpp b/lib/Frontend/PCHWriterDecl.cpp
index ef04104316..c3d968ef26 100644
--- a/lib/Frontend/PCHWriterDecl.cpp
+++ b/lib/Frontend/PCHWriterDecl.cpp
@@ -485,7 +485,7 @@ void PCHWriter::WriteDeclsBlock(ASTContext &Context) {
}
// Determine the ID for this declaration
- pch::DeclID ID = DeclIDs[D];
+ pch::DeclID& ID = DeclIDs[D];
if (ID == 0)
ID = DeclIDs.size();