[CODEGEN] Change return type of generator::packed_type to appease build warnings (#507)
This commit is contained in:
@@ -116,7 +116,7 @@ private:
|
|||||||
private:
|
private:
|
||||||
Type *cvt(ir::type *ty);
|
Type *cvt(ir::type *ty);
|
||||||
llvm::Attribute cvt(ir::attribute attr);
|
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);
|
void forward_declare(ir::function* fn);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
@@ -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());
|
Type* dtype = cvt(i->get_type()->get_tile_element_ty());
|
||||||
auto* layout = dynamic_cast<analysis::scanline_layout*>(layouts_->get(i));
|
auto* layout = dynamic_cast<analysis::scanline_layout*>(layouts_->get(i));
|
||||||
assert(layout);
|
assert(layout);
|
||||||
|
Reference in New Issue
Block a user