nir: change asserts to unreachable in nir_type_conversion_op
this is to avoid following compilation error on Android: error: control may reach end of non-void function [-Werror,-Wreturn-type] Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
This commit is contained in:
@@ -1998,7 +1998,7 @@ nir_type_conversion_op(nir_alu_type src, nir_alu_type dst)
|
|||||||
return nir_op_f2i;
|
return nir_op_f2i;
|
||||||
};
|
};
|
||||||
default:
|
default:
|
||||||
assert(!"Invalid conversion");
|
unreachable("Invalid conversion");
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2031,9 +2031,9 @@ nir_type_conversion_op(nir_alu_type src, nir_alu_type dst)
|
|||||||
case nir_type_float:
|
case nir_type_float:
|
||||||
return nir_op_d2f;
|
return nir_op_d2f;
|
||||||
default:
|
default:
|
||||||
assert(!"Invalid conversion");
|
unreachable("Invalid conversion");
|
||||||
};
|
};
|
||||||
default:
|
default:
|
||||||
assert(!"Invalid conversion");
|
unreachable("Invalid conversion");
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user