Reduce code duplication a bit. NFC.

llvm-svn: 221785
This commit is contained in:
Rafael Espindola committed 2014-11-12 14:48:38 +00:00
1 parent af0e40ac0e
commit de1e5b8dfd
2 files changed
+6 -11

No files matched your search

+2 -2
View File
@@ -3417,7 +3417,7 @@ std::error_code BitcodeReader::InitStreamFromBuffer() {
return Error(BitcodeError::InvalidBitcodeWrapperHeader);
StreamFile.reset(new BitstreamReader(BufPtr, BufEnd));
Stream.init(*StreamFile);
Stream.init(&*StreamFile);
return std::error_code();
}
@@ -3427,7 +3427,7 @@ std::error_code BitcodeReader::InitLazyStream() {
// see it.
StreamingMemoryObject *Bytes = new StreamingMemoryObject(LazyStreamer);
StreamFile.reset(new BitstreamReader(Bytes));
Stream.init(*StreamFile);
Stream.init(&*StreamFile);
unsigned char buf[16];
if (Bytes->readBytes(0, 16, buf) == -1)