diff --git a/src/wasm.h b/src/wasm.h index 9f81336144d..cd6e364da17 100644 --- a/src/wasm.h +++ b/src/wasm.h @@ -2400,9 +2400,10 @@ struct CodeAnnotation { class Function : public Importable { public: + Function() : type(Signature(), NonNullable, imported() ? Inexact : Exact) {} + // A non-nullable reference to a function type. Exact for defined functions. - // TODO: Inexact for imported functions. - Type type = Type(Signature(), NonNullable, Exact); + Type type; IRProfile profile = IRProfile::Normal; std::vector vars; // non-param locals