Mercurial > projects > ldc
changeset 168:08cfde5f70d3 trunk
[svn r184] fixed an AA helper for giving keys storage, which the runtime needs. tango.text.UnicodeData now compiles.
author | lindquist |
---|---|
date | Tue, 06 May 2008 02:26:17 +0200 |
parents | adca7f32fb6d |
children | 2df270e1ba59 |
files | gen/aa.cpp |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/gen/aa.cpp Tue May 06 01:23:02 2008 +0200 +++ b/gen/aa.cpp Tue May 06 02:26:17 2008 +0200 @@ -35,7 +35,10 @@ pkey = key->getRVal(); } else { - assert(0); + llvm::Value* tmp = new llvm::AllocaInst(DtoType(keytype), "aatmpkeystorage", gIR->topallocapoint()); + DVarValue* var = new DVarValue(keytype, tmp, true); + DtoAssign(var, key); + return tmp; } // give memory