Mercurial > projects > ldc
diff gen/elem.c @ 40:8b0e809563df trunk
[svn r44] Lots of bug fixes.
New array literal support
New array ~= operator support (for single element)
New with statement support
More...
author | lindquist |
---|---|
date | Fri, 19 Oct 2007 07:43:21 +0200 |
parents | 4648206ca213 |
children | 0c77619e803b |
line wrap: on
line diff
--- a/gen/elem.c Wed Oct 10 06:21:31 2007 +0200 +++ b/gen/elem.c Fri Oct 19 07:43:21 2007 +0200 @@ -1,6 +1,6 @@ #include <iostream> -#include "llvm/Instructions.h" +#include "gen/llvm.h" #include "gen/elem.h" #include "gen/irstate.h" @@ -50,7 +50,7 @@ return mem; } else { - return new llvm::LoadInst(mem, "tmp", gIR->scopebb()); + return gIR->ir->CreateLoad(mem, "tmp"); } }