Adapt to TY enum class

This commit is contained in:
Martin Kinkelin 2021-09-06 17:59:53 +02:00
parent 9dabd0ba16
commit 369cfd13ce
42 changed files with 512 additions and 494 deletions

View file

@ -22,7 +22,7 @@ IrFunction::IrFunction(FuncDeclaration *fd)
decl = fd;
Type *t = fd->type->toBasetype();
assert(t->ty == Tfunction);
assert(t->ty == TY::Tfunction);
type = static_cast<TypeFunction *>(t);
irFty.type = type;