mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 19:03: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:
@@ -372,14 +372,14 @@ static void DtoCreateNestedContextType(FuncDeclaration* fd) {
|
||||
if (lazy)
|
||||
types.push_back(irparam->value->getType()->getContainedType(0));
|
||||
else
|
||||
types.push_back(DtoType(vd->type));
|
||||
types.push_back(i1ToI8(DtoType(vd->type)));
|
||||
} else {
|
||||
types.push_back(irparam->value->getType());
|
||||
}
|
||||
} else if (isSpecialRefVar(vd)) {
|
||||
types.push_back(DtoType(vd->type->pointerTo()));
|
||||
} else {
|
||||
types.push_back(DtoType(vd->type));
|
||||
types.push_back(i1ToI8(DtoType(vd->type)));
|
||||
}
|
||||
if (Logger::enabled()) {
|
||||
Logger::cout() << "Nested var '" << vd->toChars() <<
|
||||
|
||||
Reference in New Issue
Block a user