Mercurial > projects > ldc
diff gen/aa.cpp @ 1560:1d5c3354b3c2
getNullValue is in Constant again
Requires LLVM >= r77721
author | Benjamin Kramer <benny.kra@gmail.com> |
---|---|
date | Fri, 31 Jul 2009 23:01:29 +0200 |
parents | 61f12f4651b5 |
children | 8d086d552909 |
line wrap: on
line diff
--- a/gen/aa.cpp Fri Jul 31 19:11:07 2009 +0200 +++ b/gen/aa.cpp Fri Jul 31 23:01:29 2009 +0200 @@ -105,7 +105,7 @@ llvm::BasicBlock* failbb = llvm::BasicBlock::Create("aaboundscheckfail", gIR->topfunc(), oldend); llvm::BasicBlock* okbb = llvm::BasicBlock::Create("aaboundsok", gIR->topfunc(), oldend); - LLValue* nullaa = gIR->context().getNullValue(ret->getType()); + LLValue* nullaa = LLConstant::getNullValue(ret->getType()); LLValue* cond = gIR->ir->CreateICmpNE(nullaa, ret, "aaboundscheck"); gIR->ir->CreateCondBr(cond, okbb, failbb);