Mercurial > projects > ldc
diff gen/classes.cpp @ 1571:8d086d552909
IntegerType is now contextifed.
Requires llvm >= 78969. resistor says this will be the last context API change :)
author | Benjamin Kramer <benny.kra@gmail.com> |
---|---|
date | Fri, 14 Aug 2009 00:39:18 +0200 |
parents | 1d5c3354b3c2 |
children | e4f7b5d9c68a |
line wrap: on
line diff
--- a/gen/classes.cpp Thu Aug 06 16:02:14 2009 +0200 +++ b/gen/classes.cpp Fri Aug 14 00:39:18 2009 +0200 @@ -630,7 +630,7 @@ return getNullPtr(getVoidPtrType()); dtor->codegen(Type::sir); - return llvm::ConstantExpr::getBitCast(dtor->ir.irFunc->func, getPtrToType(LLType::Int8Ty)); + return llvm::ConstantExpr::getBitCast(dtor->ir.irFunc->func, getPtrToType(LLType::getInt8Ty(gIR->context()))); } static unsigned build_classinfo_flags(ClassDeclaration* cd)