Mercurial > projects > ldc
diff gen/structs.cpp @ 1545:7fcb72d518f6
More factory methods moved to LLVMContext
author | Benjamin Kramer <benny.kra@gmail.com> |
---|---|
date | Wed, 15 Jul 2009 18:09:41 +0200 |
parents | 61f12f4651b5 |
children | d6e8d5db259f |
line wrap: on
line diff
--- a/gen/structs.cpp Fri Jul 17 19:23:20 2009 +0200 +++ b/gen/structs.cpp Wed Jul 15 18:09:41 2009 +0200 @@ -108,7 +108,7 @@ // call memcmp size_t sz = getTypePaddedSize(DtoType(t)); LLValue* val = DtoMemCmp(lhs->getRVal(), rhs->getRVal(), DtoConstSize_t(sz)); - return gIR->ir->CreateICmp(cmpop, val, LLConstantInt::get(val->getType(), 0, false), "tmp"); + return gIR->ir->CreateICmp(cmpop, val, gIR->context().getConstantInt(val->getType(), 0, false), "tmp"); } //////////////////////////////////////////////////////////////////////////////////////////