[llvm] r224506 - Fix Visual C++ error "'llvm::make_unique' : ambiguous call to overloaded function".
Yaron Keren
yaron.keren at gmail.com
Thu Dec 18 02:03:35 PST 2014
Author: yrnkrn
Date: Thu Dec 18 04:03:35 2014
New Revision: 224506
URL: http://llvm.org/viewvc/llvm-project?rev=224506&view=rev
Log:
Fix Visual C++ error "'llvm::make_unique' : ambiguous call to overloaded function".
Modified:
llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp
Modified: llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp?rev=224506&r1=224505&r2=224506&view=diff
==============================================================================
--- llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp (original)
+++ llvm/trunk/lib/Bitcode/Reader/BitcodeReader.cpp Thu Dec 18 04:03:35 2014
@@ -3529,9 +3529,9 @@ std::error_code BitcodeReader::InitStrea
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];
More information about the llvm-commits
mailing list