Increase initial offset into virtual file

Otherwise the PresumedLoc's suddely get valid once we avoid a
completely empty soure buffer in the next commit.
This commit is contained in:
Jonas Hahnfeld 2022-11-30 12:43:45 +01:00 committed by jenkins
parent 9cfaafc10e
commit 092c9c981f

View File

@ -70,8 +70,9 @@ namespace cling {
// file ID of the memory buffer // file ID of the memory buffer
clang::FileID m_VirtualFileID; clang::FileID m_VirtualFileID;
// The next available unique sourcelocation offset. // The next available unique sourcelocation offset. Skip the system sloc 0
unsigned m_VirtualFileLocOffset = 1; // skip the system sloc 0. // and any offset that may actually exist in the virtual file.
unsigned m_VirtualFileLocOffset = 100;
// CI owns it // CI owns it
DeclCollector* m_Consumer; DeclCollector* m_Consumer;