summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Reader/BitstreamReader.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-03-25 15:22:27 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2016-03-25 15:22:27 +0000
commitfc8110041f55483631b9e6f11ea105d41708a512 (patch)
tree40efa02077c3ed0914bd2691471af64bcc659237 /llvm/lib/Bitcode/Reader/BitstreamReader.cpp
parentfdbf0a5af805b764927bd8b38da89ddffc67f531 (diff)
downloadbcm5719-llvm-fc8110041f55483631b9e6f11ea105d41708a512.tar.gz
bcm5719-llvm-fc8110041f55483631b9e6f11ea105d41708a512.zip
Revert "Bitcode: Collect all MDString records into a single blob"
This reverts commit r264409 since it failed to bootstrap: http://lab.llvm.org:8080/green/job/clang-stage2-configure-Rlto_build/8302/ llvm-svn: 264410
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitstreamReader.cpp')
-rw-r--r--llvm/lib/Bitcode/Reader/BitstreamReader.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitstreamReader.cpp b/llvm/lib/Bitcode/Reader/BitstreamReader.cpp
index 43dae0c35a7..db9e0cd63ac 100644
--- a/llvm/lib/Bitcode/Reader/BitstreamReader.cpp
+++ b/llvm/lib/Bitcode/Reader/BitstreamReader.cpp
@@ -261,10 +261,6 @@ unsigned BitstreamCursor::readRecord(unsigned AbbrevID,
}
// Otherwise, inform the streamer that we need these bytes in memory.
- // Skip over tail padding first. We can't do it later if this is a
- // streaming memory object, since that could reallocate the storage that
- // the blob pointer references.
- JumpToBit(NewEnd);
const char *Ptr = (const char*)
BitStream->getBitcodeBytes().getPointer(CurBitPos/8, NumElts);
@@ -276,6 +272,8 @@ unsigned BitstreamCursor::readRecord(unsigned AbbrevID,
for (; NumElts; --NumElts)
Vals.push_back((unsigned char)*Ptr++);
}
+ // Skip over tail padding.
+ JumpToBit(NewEnd);
}
return Code;
OpenPOWER on IntegriCloud