Use a reference to modify the DeclIDs map.
llvm-svn: 72681
This commit is contained in:
parent
6f6f6005ab
commit
dccbf28dda
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue