summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2009-06-01 00:49:11 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2009-06-01 00:49:11 +0000
commitdccbf28dda7ca57172cb84b3fbaedaeab2e66041 (patch)
tree02af2a37d1c8fb6f583355e3936c68c6ae79dcee
parent6f6f6005abc405b73029c574a2fffd7cba6aa5ce (diff)
downloadbcm5719-llvm-dccbf28dda7ca57172cb84b3fbaedaeab2e66041.tar.gz
bcm5719-llvm-dccbf28dda7ca57172cb84b3fbaedaeab2e66041.zip
Use a reference to modify the DeclIDs map.
llvm-svn: 72681
-rw-r--r--clang/lib/Frontend/PCHWriterDecl.cpp2
1 files changed, 1 insertions, 1 deletions
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();
OpenPOWER on IntegriCloud