aboutsummaryrefslogtreecommitdiff
path: root/lib/Frontend/PCHWriterDecl.cpp
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2009-06-01 00:49:11 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2009-06-01 00:49:11 +0000
commit0e1081388a7f3ae1a2c59dcd03de898a3b391f8e (patch)
tree03e68ac41ac8ce56705144816b36e3cc269d4a01 /lib/Frontend/PCHWriterDecl.cpp
parenta53f93be9846a6345b97ce6e6f0b7a0da6da25eb (diff)
Use a reference to modify the DeclIDs map.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72681 91177308-0d34-0410-b5e6-96231b3b80d8
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();