OSDN Git Service

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)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244641 91177308-0d34-0410-b5e6-96231b3b80d8

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();
 }