]> granicus.if.org Git - clang/commitdiff
Use a reference to modify the DeclIDs map.
authorZhongxing Xu <xuzhongxing@gmail.com>
Mon, 1 Jun 2009 00:49:11 +0000 (00:49 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Mon, 1 Jun 2009 00:49:11 +0000 (00:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72681 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Frontend/PCHWriterDecl.cpp

index ef04104316905fa40e55cd41851b1f52595bb39e..c3d968ef261b88e41ddbbd869f93bf54d3700b41 100644 (file)
@@ -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();