Handle removal of llvm::make_unique()
This commit is contained in:
parent
3ec3aa72d4
commit
30ec68a545
4 changed files with 17 additions and 2 deletions
|
@ -1450,7 +1450,11 @@ struct LLVMRustModuleBuffer {
|
|||
|
||||
extern "C" LLVMRustModuleBuffer*
|
||||
LLVMRustModuleBufferCreate(LLVMModuleRef M) {
|
||||
#if LLVM_VERSION_GE(10, 0)
|
||||
auto Ret = std::make_unique<LLVMRustModuleBuffer>();
|
||||
#else
|
||||
auto Ret = llvm::make_unique<LLVMRustModuleBuffer>();
|
||||
#endif
|
||||
{
|
||||
raw_string_ostream OS(Ret->data);
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue