summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTapani Pälli <[email protected]>2017-01-10 10:14:03 +0200
committerTapani Pälli <[email protected]>2017-01-11 10:08:13 +0200
commitf97f93865012c5b271a5d3f81d4ea6f58d07c047 (patch)
treeb916bcb3d14af07e7b799188c5c73a4fb4f68988 /src
parenta9f497c6787cb8a609f0214c698b396ecbb8742d (diff)
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 <[email protected]> Reviewed-by: Samuel Iglesias Gonsálvez <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/compiler/nir/nir.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/compiler/nir/nir.c b/src/compiler/nir/nir.c
index a2af3909464..f501e235c5c 100644
--- a/src/compiler/nir/nir.c
+++ b/src/compiler/nir/nir.c
@@ -1998,7 +1998,7 @@ nir_type_conversion_op(nir_alu_type src, nir_alu_type dst)
return nir_op_f2i;
};
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:
return nir_op_d2f;
default:
- assert(!"Invalid conversion");
+ unreachable("Invalid conversion");
};
default:
- assert(!"Invalid conversion");
+ unreachable("Invalid conversion");
};
}