зеркало из https://github.com/microsoft/clang-1.git
ReadSourceManagerBlock is skipping over records that can contain Blobs. Not passing
in a StringRef to bind to them forces them to be unpacked into the Record as individual bytes. This is wasteful, but not likely to be measurable in this instance. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173066 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
8222b8951d
Коммит
125eb3e3b6
|
@ -810,7 +810,8 @@ bool ASTReader::ReadSourceManagerBlock(ModuleFile &F) {
|
|||
|
||||
// Read a record.
|
||||
Record.clear();
|
||||
switch (SLocEntryCursor.readRecord(E.ID, Record)) {
|
||||
StringRef Blob;
|
||||
switch (SLocEntryCursor.readRecord(E.ID, Record, &Blob)) {
|
||||
default: // Default behavior: ignore.
|
||||
break;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче