diff options
Diffstat (limited to 'clang/lib/Frontend/PCHReader.cpp')
| -rw-r--r-- | clang/lib/Frontend/PCHReader.cpp | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/clang/lib/Frontend/PCHReader.cpp b/clang/lib/Frontend/PCHReader.cpp index 2c51180afc9..aebb7e17727 100644 --- a/clang/lib/Frontend/PCHReader.cpp +++ b/clang/lib/Frontend/PCHReader.cpp @@ -2953,8 +2953,9 @@ PCHReader::ReadNestedNameSpecifier(const RecordData &Record, unsigned &Idx) {  SourceRange  PCHReader::ReadSourceRange(const RecordData &Record, unsigned &Idx) { -  return SourceRange(SourceLocation::getFromRawEncoding(Record[Idx++]), -                     SourceLocation::getFromRawEncoding(Record[Idx++])); +  SourceLocation beg = SourceLocation::getFromRawEncoding(Record[Idx++]); +  SourceLocation end = SourceLocation::getFromRawEncoding(Record[Idx++]); +  return SourceRange(beg, end);  }  /// \brief Read an integral value | 

