[CODEGEN] Change return type of generator::packed_type to appease build warnings (#507)

This commit is contained in:
Sriram Murali
2022-05-04 20:03:37 -07:00
committed by GitHub
parent 95feb10ec9
commit 7c9bc5a47b
2 changed files with 2 additions and 2 deletions

View File

@@ -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:

View File

@@ -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<analysis::scanline_layout*>(layouts_->get(i));
assert(layout);