summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2013-01-21 18:28:26 +0000
committerChris Lattner <sabre@nondot.org>2013-01-21 18:28:26 +0000
commit15c3e7dab522ec3aa49b1571dcfd079c62d49d40 (patch)
tree30a98e6496752ebfb71ebf77d860efa8a515f0c0
parent1aeca1e8069ac5ff6c4e6ba35e7e1550d760461e (diff)
downloadbcm5719-llvm-15c3e7dab522ec3aa49b1571dcfd079c62d49d40.tar.gz
bcm5719-llvm-15c3e7dab522ec3aa49b1571dcfd079c62d49d40.zip
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. llvm-svn: 173066
-rw-r--r--clang/lib/Serialization/ASTReader.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Serialization/ASTReader.cpp b/clang/lib/Serialization/ASTReader.cpp
index db850f3f83f..97766d0f7df 100644
--- a/clang/lib/Serialization/ASTReader.cpp
+++ b/clang/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;
OpenPOWER on IntegriCloud