aboutsummaryrefslogtreecommitdiff
path: root/src/all_types.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/all_types.hpp')
-rw-r--r--src/all_types.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/all_types.hpp b/src/all_types.hpp
index df0ecff62c..1ec123bc74 100644
--- a/src/all_types.hpp
+++ b/src/all_types.hpp
@@ -1609,6 +1609,9 @@ struct IrInstructionConst {
IrInstruction base;
};
+// When an IrExecutable is not in a function, a return instruction means that
+// the expression returns with that value, even though a return statement from
+// an AST perspective is invalid.
struct IrInstructionReturn {
IrInstruction base;