Mercurial > projects > ldc
diff ir/irvar.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 | 0c03ba6f7c24 |
children | 40bd4a0d4870 |
line wrap: on
line diff
--- a/ir/irvar.cpp Thu Aug 06 16:02:14 2009 +0200 +++ b/ir/irvar.cpp Fri Aug 14 00:39:18 2009 +0200 @@ -18,7 +18,7 @@ ////////////////////////////////////////////////////////////////////////////// IrGlobal::IrGlobal(VarDeclaration* v): IrVar(v), - type(llvm::OpaqueType::get()) + type(llvm::OpaqueType::get(llvm::getGlobalContext())) { constInit = NULL; }