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:
parent
9cfaafc10e
commit
092c9c981f
@ -70,8 +70,9 @@ namespace cling {
|
||||
// file ID of the memory buffer
|
||||
clang::FileID m_VirtualFileID;
|
||||
|
||||
// The next available unique sourcelocation offset.
|
||||
unsigned m_VirtualFileLocOffset = 1; // skip the system sloc 0.
|
||||
// The next available unique sourcelocation offset. Skip the system sloc 0
|
||||
// and any offset that may actually exist in the virtual file.
|
||||
unsigned m_VirtualFileLocOffset = 100;
|
||||
|
||||
// CI owns it
|
||||
DeclCollector* m_Consumer;
|
||||
|
Loading…
Reference in New Issue
Block a user