Qualify one more make_unique call.
authorHans Wennborg <hans@hanshq.net>
Sun, 30 Nov 2014 00:31:49 +0000 (00:31 +0000)
committerHans Wennborg <hans@hanshq.net>
Sun, 30 Nov 2014 00:31:49 +0000 (00:31 +0000)
The previous patch had effect, but missed this one. It seems MSVC
gets ADL-confused by the calls where the first argument is a function call?

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222968 91177308-0d34-0410-b5e6-96231b3b80d8

lib/TableGen/TGParser.cpp

index cef7f96b24c7a288c605aaf72b7218748c52e5f0..d0c50d99aab55ecb0d3dd1c7fbdf354973df5331 100644 (file)
@@ -2169,8 +2169,8 @@ bool TGParser::ParseClass() {
                       + "' already defined");
   } else {
     // If this is the first reference to this class, create and add it.
                       + "' already defined");
   } else {
     // If this is the first reference to this class, create and add it.
-    auto NewRec = make_unique<Record>(Lex.getCurStrVal(), Lex.getLoc(),
-                                      Records);
+    auto NewRec =
+        llvm::make_unique<Record>(Lex.getCurStrVal(), Lex.getLoc(), Records);
     CurRec = NewRec.get();
     Records.addClass(std::move(NewRec));
   }
     CurRec = NewRec.get();
     Records.addClass(std::move(NewRec));
   }