[cfe-commits] r72681 - /cfe/trunk/lib/Frontend/PCHWriterDecl.cpp
Zhongxing Xu
xuzhongxing at gmail.com
Sun May 31 17:49:13 PDT 2009
Author: zhongxingxu
Date: Sun May 31 19:49:11 2009
New Revision: 72681
URL: http://llvm.org/viewvc/llvm-project?rev=72681&view=rev
Log:
Use a reference to modify the DeclIDs map.
Modified:
cfe/trunk/lib/Frontend/PCHWriterDecl.cpp
Modified: cfe/trunk/lib/Frontend/PCHWriterDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/PCHWriterDecl.cpp?rev=72681&r1=72680&r2=72681&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/PCHWriterDecl.cpp (original)
+++ cfe/trunk/lib/Frontend/PCHWriterDecl.cpp Sun May 31 19:49:11 2009
@@ -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();
More information about the cfe-commits
mailing list