[llvm] r244641 - Use llvm::make_unique to fix the MSVC build.

Rafael Espindola via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 11 11:11:18 PDT 2015


Author: rafael
Date: Tue Aug 11 13:11:17 2015
New Revision: 244641

URL: http://llvm.org/viewvc/llvm-project?rev=244641&view=rev
Log:
Use llvm::make_unique to fix the MSVC build.

Modified:
    llvm/trunk/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp

Modified: llvm/trunk/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp?rev=244641&r1=244640&r2=244641&view=diff
==============================================================================
--- llvm/trunk/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp (original)
+++ llvm/trunk/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp Tue Aug 11 13:11:17 2015
@@ -77,7 +77,7 @@ WebAssemblyTargetMachine::getSubtargetIm
     // 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();
 }




More information about the llvm-commits mailing list