diff gen/aa.cpp @ 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 a8cd9bc1021a
children db9890b3fb64
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