aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Documentation
diff options
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2018-08-31 23:05:17 +0200
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2018-09-06 01:37:51 +0200
commit4885582d162e7b91616453957b3fe6d45eee5375 (patch)
treedd2ef22204943f5b19e9f716cb7521697bb3962e /Documentation
parent51c6129e93fd26111211273dcd018426cf9df152 (diff)
downloadsparse-dev-4885582d162e7b91616453957b3fe6d45eee5375.tar.gz
return nothing only in void functions
Currently, the code for the return is only generated if the effectively return a type or a value with a size greater than 0. But this mean that a non-void function with an error in its return expression is considered as a void function for what the generated IR is concerned, making things incoherent. Fix this by using the declared type instead of the type of the return expression. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions