mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-04 17:11:44 +03:00
Build fix for the latest LLVMContext changes (LLVM r75445)
This shouldn't break the build with older LLVM revs. We include LLVMContext.h in gen/llvm.h now to make the transition a little bit easier.
This commit is contained in:
parent
8576788245
commit
331319dab1
16 changed files with 36 additions and 38 deletions
|
@ -811,7 +811,7 @@ void DtoDefineFunction(FuncDeclaration* fd)
|
|||
}
|
||||
}
|
||||
else
|
||||
llvm::ReturnInst::Create(llvm::Constant::getNullValue(func->getReturnType()), bb);
|
||||
llvm::ReturnInst::Create(llvm::getGlobalContext().getNullValue(func->getReturnType()), bb);
|
||||
}
|
||||
|
||||
// std::cout << *func << std::endl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue