diff --git a/ir/irtype.cpp b/ir/irtype.cpp index 0836def1..44d29f3a 100644 --- a/ir/irtype.cpp +++ b/ir/irtype.cpp @@ -112,10 +112,10 @@ const llvm::Type * IrTypeBasic::basic2llvm(Type* t) case Tbool: return llvm::Type::getInt1Ty(ctx); + default: + assert(0 && "not basic type"); + return NULL; } - - assert(0 && "not basic type"); - return NULL; } //////////////////////////////////////////////////////////////////////////////