summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization/ASTWriterDecl.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-10-31 07:20:15 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-10-31 07:20:15 +0000
commit6fb6003aad61169a5bd7eb4b85fa7e93a986333d (patch)
treefef44a2dd4d7d38e01288adfaadfae95e48c8721 /clang/lib/Serialization/ASTWriterDecl.cpp
parent6c798bebc1f481ceeafa1d0fe67ce715051ce4be (diff)
downloadbcm5719-llvm-6fb6003aad61169a5bd7eb4b85fa7e93a986333d.tar.gz
bcm5719-llvm-6fb6003aad61169a5bd7eb4b85fa7e93a986333d.zip
[PCH] Now that we store the location of a decl outside its record
make sure that we keep track of locations of replaced decls as well. llvm-svn: 143341
Diffstat (limited to 'clang/lib/Serialization/ASTWriterDecl.cpp')
-rw-r--r--clang/lib/Serialization/ASTWriterDecl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Serialization/ASTWriterDecl.cpp b/clang/lib/Serialization/ASTWriterDecl.cpp
index 3e3e28dfbb7..c35d4b0d220 100644
--- a/clang/lib/Serialization/ASTWriterDecl.cpp
+++ b/clang/lib/Serialization/ASTWriterDecl.cpp
@@ -1647,7 +1647,8 @@ void ASTWriter::WriteDecl(ASTContext &Context, Decl *D) {
if (ID < FirstDeclID) {
// We're replacing a decl in a previous file.
- ReplacedDecls.push_back(std::make_pair(ID, Stream.GetCurrentBitNo()));
+ ReplacedDecls.push_back(ReplacedDeclInfo(ID, Stream.GetCurrentBitNo(),
+ D->getLocation()));
} else {
unsigned Index = ID - FirstDeclID;
OpenPOWER on IntegriCloud