aboutsummaryrefslogtreecommitdiff
path: root/c67-gen.c
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2014-03-08 18:36:02 +0800
committerThomas Preud'homme <robotux@celest.fr>2014-03-08 18:38:49 +0800
commitfdb3b10d0693cf33ce5a0acf17f0f323d79ee5f1 (patch)
tree5090d475b14656a25a3c616e840d43d9173e6dd8 /c67-gen.c
parentba286136bf8e48c71ffd6c2fd9ce97e64a6eeeb1 (diff)
downloadtinycc-fdb3b10d0693cf33ce5a0acf17f0f323d79ee5f1.tar.gz
tinycc-fdb3b10d0693cf33ce5a0acf17f0f323d79ee5f1.tar.bz2
Fix various errors uncovered by static analysis
Reported-by: Carlos Montiers <cmontiers@gmail.com>
Diffstat (limited to 'c67-gen.c')
-rw-r--r--c67-gen.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/c67-gen.c b/c67-gen.c
index f2baea5..6d9068a 100644
--- a/c67-gen.c
+++ b/c67-gen.c
@@ -1901,8 +1901,6 @@ void gfunc_call(int nb_args)
for (i = 0; i < nb_args; i++) {
if ((vtop->type.t & VT_BTYPE) == VT_STRUCT) {
ALWAYS_ASSERT(FALSE);
- } else if ((vtop->type.t & VT_BTYPE) == VT_STRUCT) {
- ALWAYS_ASSERT(FALSE);
} else {
/* simple type (currently always same size) */
/* XXX: implicit cast ? */