Mercurial > projects > dang
changeset 32:7f4de5b5166c new_gen
LLVMGen.d/getPointer:
author | Anders Halager <halager@gmail.com> |
---|---|
date | Sun, 20 Apr 2008 12:19:11 +0200 |
parents | d14705a06bdd |
children | 084c2c147c4f |
files | gen/LLVMGen.d |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/gen/LLVMGen.d Sun Apr 20 12:03:13 2008 +0200 +++ b/gen/LLVMGen.d Sun Apr 20 12:19:11 2008 +0200 @@ -380,6 +380,10 @@ Value val = b.buildGEP(v, vals, sym.id.get~"."~child.get); return val; } + default: + Value val = genExpression(exp); + auto AI = b.buildAlloca(val.type, ".s"); + return b.buildStore(val, AI); } assert(0, "Reached end of switch in getPointer"); return null;