Use llvm::make_unique to fix the MSVC build.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 11 Aug 2015 18:11:17 +0000 (18:11 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 11 Aug 2015 18:11:17 +0000 (18:11 +0000)
llvm-svn: 244641

llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp

index bac635d..0f3ac94 100644 (file)
@@ -77,7 +77,7 @@ WebAssemblyTargetMachine::getSubtargetImpl(const Function &F) const {
     // creation will depend on the TM and the code generation flags on the
     // function that reside in TargetOptions.
     resetTargetOptions(F);
-    I = make_unique<WebAssemblySubtarget>(TargetTriple, CPU, FS, *this);
+    I = llvm::make_unique<WebAssemblySubtarget>(TargetTriple, CPU, FS, *this);
   }
   return I.get();
 }