getNullValue is in Constant again

Requires LLVM >= r77721
This commit is contained in:
Benjamin Kramer
2009-07-31 23:01:29 +02:00
parent 0a1d467ac7
commit 4c5457ba61
13 changed files with 35 additions and 35 deletions

View File

@@ -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);
}
//////////////////////////////////////////////////////////////////////////////////////////