mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-30 19:43:13 +01:00
[svn r184] fixed an AA helper for giving keys storage, which the runtime needs. tango.text.UnicodeData now compiles.
This commit is contained in:
@@ -35,7 +35,10 @@ static llvm::Value* to_pkey(DValue* key)
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user