mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-15 12:23:13 +01:00
Store bools as i8.
I really hope we can refactor this to use a less leaky abstraction later – it should at least be possible to merge voidToI8 and i1ToI8.
This commit is contained in:
@@ -1059,7 +1059,7 @@ void DtoDefineFunction(FuncDeclaration* fd)
|
||||
if (lazy)
|
||||
argt = irparam->value->getType();
|
||||
else
|
||||
argt = DtoType(vd->type);
|
||||
argt = i1ToI8(DtoType(vd->type));
|
||||
LLValue* mem = DtoRawAlloca(argt, 0, vd->ident->toChars());
|
||||
|
||||
// let the abi transform the argument back first
|
||||
|
||||
Reference in New Issue
Block a user