mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-03 00:20:40 +03:00
Revert "Fix compile error with LLVM 3.6."
This reverts commit cc829485cc
.
This commit is contained in:
parent
cc829485cc
commit
332480460c
2 changed files with 2 additions and 14 deletions
|
@ -403,11 +403,9 @@ LLFunction* DtoInlineIRFunction(FuncDeclaration* fdecl)
|
|||
(std::string(err.getColumnNo(), ' ') + '^').c_str(),
|
||||
errstr.c_str(), stream.str().c_str());
|
||||
|
||||
#if LDC_LLVM_VER >= 306
|
||||
llvm::Linker(gIR->module).linkInModule(m.get());
|
||||
#else
|
||||
std::string errstr2 = "";
|
||||
#if LDC_LLVM_VER >= 303
|
||||
std::string errstr2 = "";
|
||||
#if LDC_LLVM_VER >= 306
|
||||
llvm::Linker(gIR->module).linkInModule(m.get(), &errstr2);
|
||||
#else
|
||||
llvm::Linker(gIR->module).linkInModule(m, &errstr2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue