commit | 4569b7c20479815dcf64e2746fce1cb2919bea36 | [log] [tgz] |
---|---|---|
author | Zhongxing Xu <xuzhongxing@gmail.com> | Mon Jun 01 00:49:11 2009 +0000 |
committer | Zhongxing Xu <xuzhongxing@gmail.com> | Mon Jun 01 00:49:11 2009 +0000 |
tree | 03e68ac41ac8ce56705144816b36e3cc269d4a01 | |
parent | 962ed0695d1083e26f79d99d6fc7aebc0ba4e70e [diff] [blame] |
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
diff --git a/lib/Frontend/PCHWriterDecl.cpp b/lib/Frontend/PCHWriterDecl.cpp index ef04104..c3d968e 100644 --- a/lib/Frontend/PCHWriterDecl.cpp +++ b/lib/Frontend/PCHWriterDecl.cpp
@@ -485,7 +485,7 @@ } // Determine the ID for this declaration - pch::DeclID ID = DeclIDs[D]; + pch::DeclID& ID = DeclIDs[D]; if (ID == 0) ID = DeclIDs.size();