diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2010-07-26 16:56:01 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2010-07-26 16:56:01 +0000 |
commit | 5606220447c7901ba8d80147ddab893bb7949dd5 (patch) | |
tree | 96cb5fa342be688f5f163b49b11ef356dc66f336 /lib/Frontend/PCHWriter.cpp | |
parent | 3d398aa5c2be8919bbc0144bce611c48119bc861 (diff) |
Add source location information to C++ base specifiers.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109396 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/PCHWriter.cpp')
-rw-r--r-- | lib/Frontend/PCHWriter.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Frontend/PCHWriter.cpp b/lib/Frontend/PCHWriter.cpp index 4474eaef48..83e042120e 100644 --- a/lib/Frontend/PCHWriter.cpp +++ b/lib/Frontend/PCHWriter.cpp @@ -2790,7 +2790,7 @@ void PCHWriter::AddCXXBaseSpecifier(const CXXBaseSpecifier &Base, Record.push_back(Base.isVirtual()); Record.push_back(Base.isBaseOfClass()); Record.push_back(Base.getAccessSpecifierAsWritten()); - AddTypeRef(Base.getType(), Record); + AddTypeSourceInfo(Base.getTypeSourceInfo(), Record); AddSourceRange(Base.getSourceRange(), Record); } @@ -2805,4 +2805,3 @@ void PCHWriter::TypeRead(pch::TypeID ID, QualType T) { void PCHWriter::DeclRead(pch::DeclID ID, const Decl *D) { DeclIDs[D] = ID; } - |