diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-10-31 07:20:15 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-10-31 07:20:15 +0000 |
commit | 6fb6003aad61169a5bd7eb4b85fa7e93a986333d (patch) | |
tree | fef44a2dd4d7d38e01288adfaadfae95e48c8721 /clang/lib/Serialization/ASTWriterDecl.cpp | |
parent | 6c798bebc1f481ceeafa1d0fe67ce715051ce4be (diff) | |
download | bcm5719-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.cpp | 3 |
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; |