Fix Visual C++ error "'llvm::make_unique' : ambiguous call to overloaded function".
authorYaron Keren <yaron.keren@gmail.com>
Thu, 18 Dec 2014 10:03:35 +0000 (10:03 +0000)
committerYaron Keren <yaron.keren@gmail.com>
Thu, 18 Dec 2014 10:03:35 +0000 (10:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224506 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Bitcode/Reader/BitcodeReader.cpp

index d4a2c1a298c6acb14a5e246da7302366bd695c80..e228b1d462dff1c3fe5215e117936195f02df2f9 100644 (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];