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 | ef23b6001e8d9715246ca23bd8c3a6887d7844cb (patch) | |
tree | 1d804502a321c84095efa2ec80bb1c772a75710a /lib/Serialization/ASTWriterDecl.cpp | |
parent | 9d128d04578c62675eeb0cce83066052f9c19c9a (diff) |
[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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143341 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Serialization/ASTWriterDecl.cpp')
-rw-r--r-- | lib/Serialization/ASTWriterDecl.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Serialization/ASTWriterDecl.cpp b/lib/Serialization/ASTWriterDecl.cpp index 3e3e28dfbb..c35d4b0d22 100644 --- a/lib/Serialization/ASTWriterDecl.cpp +++ b/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; |