From 125eb3e3b6cc2f3e7b2e0e04e59c924f936520f5 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 21 Jan 2013 18:28:26 +0000 Subject: [PATCH] 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 --- lib/Serialization/ASTReader.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Serialization/ASTReader.cpp b/lib/Serialization/ASTReader.cpp index db850f3f83..97766d0f7d 100644 --- a/lib/Serialization/ASTReader.cpp +++ b/lib/Serialization/ASTReader.cpp @@ -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;