mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-08-28 17:20:04 +02: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:
@@ -213,7 +213,7 @@ LLValue* DtoDelegateEquals(TOK op, LLValue* lhs, LLValue* rhs)
|
||||
llvm::Value *b1, *b2;
|
||||
if (rhs == NULL)
|
||||
{
|
||||
rhs = LLConstant::getNullValue(lhs->getType());
|
||||
rhs = llvm::getGlobalContext().getNullValue(lhs->getType());
|
||||
}
|
||||
|
||||
LLValue* l = gIR->ir->CreateExtractValue(lhs, 0);
|
||||
@@ -741,7 +741,7 @@ llvm::ConstantPointerNull* getNullPtr(const LLType* t)
|
||||
|
||||
LLConstant* getNullValue(const LLType* t)
|
||||
{
|
||||
return LLConstant::getNullValue(t);
|
||||
return llvm::getGlobalContext().getNullValue(t);
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user