Use a reference to modify the DeclIDs map.

llvm-svn: 72681
This commit is contained in:
Zhongxing Xu 2009-06-01 00:49:11 +00:00
parent 6f6f6005ab
commit dccbf28dda
1 changed files with 1 additions and 1 deletions

View 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();