From a68c4aff8cd3aada697ad36dc6582d0e09b4b0d2 Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Mon, 19 Sep 2011 20:54:44 +0000 Subject: [PATCH] [PCH] The range map for SLoc offsets is a reversed one, not negated. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140066 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Serialization/ASTReader.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/clang/Serialization/ASTReader.h b/include/clang/Serialization/ASTReader.h index 48f8053471..507fd66ec7 100644 --- a/include/clang/Serialization/ASTReader.h +++ b/include/clang/Serialization/ASTReader.h @@ -248,10 +248,10 @@ private: /// \brief A map of negated SLocEntryIDs to the modules containing them. ContinuousRangeMap GlobalSLocEntryMap; - typedef ContinuousRangeMap GlobalSLocOffsetMapType; + typedef ContinuousRangeMap GlobalSLocOffsetMapType; - /// \brief A map of negated SourceLocation offsets to the modules containing - /// them. + /// \brief A map of reversed (SourceManager::MaxLoadedOffset - SLocOffset) + /// SourceLocation offsets to the modules containing them. GlobalSLocOffsetMapType GlobalSLocOffsetMap; /// \brief Types that have already been loaded from the chain. -- 2.50.1