From dccbf28dda7ca57172cb84b3fbaedaeab2e66041 Mon Sep 17 00:00:00 2001 From: Zhongxing Xu Date: Mon, 1 Jun 2009 00:49:11 +0000 Subject: Use a reference to modify the DeclIDs map. llvm-svn: 72681 --- clang/lib/Frontend/PCHWriterDecl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/Frontend/PCHWriterDecl.cpp') diff --git a/clang/lib/Frontend/PCHWriterDecl.cpp b/clang/lib/Frontend/PCHWriterDecl.cpp index ef041043169..c3d968ef261 100644 --- a/clang/lib/Frontend/PCHWriterDecl.cpp +++ b/clang/lib/Frontend/PCHWriterDecl.cpp @@ -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(); -- cgit v1.2.3