[llvm] r222968 - Qualify one more make_unique call.
Hans Wennborg
hans at hanshq.net
Sat Nov 29 16:31:49 PST 2014
Author: hans
Date: Sat Nov 29 18:31:49 2014
New Revision: 222968
URL: http://llvm.org/viewvc/llvm-project?rev=222968&view=rev
Log:
Qualify one more make_unique call.
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?
Modified:
llvm/trunk/lib/TableGen/TGParser.cpp
Modified: llvm/trunk/lib/TableGen/TGParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/TableGen/TGParser.cpp?rev=222968&r1=222967&r2=222968&view=diff
==============================================================================
--- llvm/trunk/lib/TableGen/TGParser.cpp (original)
+++ llvm/trunk/lib/TableGen/TGParser.cpp Sat Nov 29 18:31:49 2014
@@ -2169,8 +2169,8 @@ bool TGParser::ParseClass() {
+ "' 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));
}
More information about the llvm-commits
mailing list