mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-04-18 01:39:03 +02:00
getNullValue is in Constant again
Requires LLVM >= r77721
This commit is contained in:
@@ -212,7 +212,7 @@ LLValue* DtoDelegateEquals(TOK op, LLValue* lhs, LLValue* rhs)
|
||||
llvm::Value *b1, *b2;
|
||||
if (rhs == NULL)
|
||||
{
|
||||
rhs = gIR->context().getNullValue(lhs->getType());
|
||||
rhs = LLConstant::getNullValue(lhs->getType());
|
||||
}
|
||||
|
||||
LLValue* l = gIR->ir->CreateExtractValue(lhs, 0);
|
||||
@@ -740,7 +740,7 @@ llvm::ConstantPointerNull* getNullPtr(const LLType* t)
|
||||
|
||||
LLConstant* getNullValue(const LLType* t)
|
||||
{
|
||||
return gIR->context().getNullValue(t);
|
||||
return LLConstant::getNullValue(t);
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user