Fix Visual C++ error "'llvm::make_unique' : ambiguous call to overloaded function".

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224506 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Yaron Keren 2014-12-18 10:03:35 +00:00
parent 9c1911b105
commit 80237c1148

View File

@ -3529,9 +3529,9 @@ std::error_code BitcodeReader::InitStreamFromBuffer() {
std::error_code BitcodeReader::InitLazyStream() {
// Check and strip off the bitcode wrapper; BitstreamReader expects never to
// see it.
auto OwnedBytes = make_unique<StreamingMemoryObject>(LazyStreamer);
auto OwnedBytes = llvm::make_unique<StreamingMemoryObject>(LazyStreamer);
StreamingMemoryObject &Bytes = *OwnedBytes;
StreamFile = make_unique<BitstreamReader>(std::move(OwnedBytes));
StreamFile = llvm::make_unique<BitstreamReader>(std::move(OwnedBytes));
Stream.init(&*StreamFile);
unsigned char buf[16];