summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorSebastian Buchwald <Sebastian.Buchwald@kit.edu>2016-07-28 13:54:30 +0200
committerSebastian Buchwald <Sebastian.Buchwald@kit.edu>2016-07-28 13:54:30 +0200
commit22112cfa0b0387064358229f636935f82549ed4b (patch)
tree686f0b2381660d283e146d8201311c4eb5e44e3c /src
parentb7050b73d410e6d7071fe8c4a6f5e9ab1e47fdeb (diff)
Remove unreachable code
Diffstat (limited to 'src')
-rw-r--r--src/firm/ast2firm.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/firm/ast2firm.c b/src/firm/ast2firm.c
index 28785fc..34e9af7 100644
--- a/src/firm/ast2firm.c
+++ b/src/firm/ast2firm.c
@@ -271,25 +271,21 @@ static unsigned determine_calling_convention(function_type_t const *const ft)
case CC_CDECL:
is_cdecl:
return cc_cdecl_set;
- break;
case CC_STDCALL:
if (ft->variadic)
goto is_cdecl;
/* only non-variadic function can use stdcall, else use cdecl */
return cc_stdcall_set;
- break;
case CC_FASTCALL:
if (ft->variadic)
goto is_cdecl;
/* only non-variadic function can use fastcall, else use cdecl */
return cc_fastcall_set;
- break;
case CC_THISCALL:
return cc_cdecl_set; /* TODO */
- break;
}
panic("invalid calling convention");
}