Replace std::make_unique with llvm::make_unique (#2367)

This commit is contained in:
Tristan Labelle 2019-07-25 18:32:10 -07:00 коммит произвёл GitHub
Родитель 146ce5ba0b
Коммит 02ac47c26d
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -13,6 +13,7 @@
#include "dxc/DxilPIXPasses/DxilPIXPasses.h"
#include "dxc/DxilPIXPasses/DxilPIXVirtualRegisters.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/InstIterator.h"
#include "llvm/IR/Instruction.h"
@ -38,7 +39,7 @@ void dxil_dia::Session::Init(
m_module = module;
m_context = context;
m_finder = finder;
m_dxilModule = std::make_unique<hlsl::DxilModule>(module.get());
m_dxilModule = llvm::make_unique<hlsl::DxilModule>(module.get());
llvm::legacy::PassManager PM;
llvm::initializeDxilAnnotateWithVirtualRegisterPass(*llvm::PassRegistry::getPassRegistry());

Просмотреть файл

@ -9,6 +9,7 @@
// //
///////////////////////////////////////////////////////////////////////////////
#include "llvm/ADT/STLExtras.h"
#include "llvm/Bitcode/ReaderWriter.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/InstIterator.h"
@ -1797,7 +1798,7 @@ LPCSTR DxilShaderReflection::CreateUpperCase(LPCSTR pValue) {
if (*pCursor == '\0')
return pValue;
std::unique_ptr<char[]> pUpperStr = std::make_unique<char[]>(strlen(pValue) + 1);
std::unique_ptr<char[]> pUpperStr = llvm::make_unique<char[]>(strlen(pValue) + 1);
char *pWrite = pUpperStr.get();
pCursor = pValue;
for (;;) {