diff --git a/include/triton/codegen/selection/generator.h b/include/triton/codegen/selection/generator.h index a4f1d33af..d855d3eca 100644 --- a/include/triton/codegen/selection/generator.h +++ b/include/triton/codegen/selection/generator.h @@ -116,7 +116,7 @@ private: private: Type *cvt(ir::type *ty); llvm::Attribute cvt(ir::attribute attr); - llvm::StructType* packed_type(ir::value* i); + void packed_type(ir::value* i); void forward_declare(ir::function* fn); public: diff --git a/lib/codegen/selection/generator.cc b/lib/codegen/selection/generator.cc index c6f064ea8..9abf86df8 100644 --- a/lib/codegen/selection/generator.cc +++ b/lib/codegen/selection/generator.cc @@ -3326,7 +3326,7 @@ void generator::finalize_phi_node(ir::phi_node *x) { } } -StructType* generator::packed_type(ir::value* i){ +void generator::packed_type(ir::value* i){ Type* dtype = cvt(i->get_type()->get_tile_element_ty()); auto* layout = dynamic_cast(layouts_->get(i)); assert(layout);