aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2016-12-15 09:31:01 +0100
committerBjörn Gustavsson <[email protected]>2017-01-12 12:10:11 +0100
commit718f11a09b9ba11c04cd2d6d7f69c19bac2b3710 (patch)
treeb23906c9b30676ea96b57df0bb0eba890e4397de
parentfb5209a4261f55989fe2b6da92543cbf6b4e0913 (diff)
downloadotp-718f11a09b9ba11c04cd2d6d7f69c19bac2b3710.tar.gz
otp-718f11a09b9ba11c04cd2d6d7f69c19bac2b3710.tar.bz2
otp-718f11a09b9ba11c04cd2d6d7f69c19bac2b3710.zip
v3_life.hrl: Add types for all fields
-rw-r--r--lib/compiler/src/v3_life.hrl8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/compiler/src/v3_life.hrl b/lib/compiler/src/v3_life.hrl
index 9d03a86ccd..5c76312067 100644
--- a/lib/compiler/src/v3_life.hrl
+++ b/lib/compiler/src/v3_life.hrl
@@ -20,8 +20,10 @@
%% This record contains variable life-time annotation for a
%% kernel expression. Added by v3_life, used by v3_codegen.
+-type vdb_entry() :: {atom(),non_neg_integer(),non_neg_integer()}.
+
-record(l, {ke, %Kernel expression
- i=0, %Op number
- vdb=[], %Variable database
- a}). %Core annotation
+ i=0 :: non_neg_integer(), %Op number
+ vdb=[] :: [vdb_entry()], %Variable database
+ a=[] :: [term()]}). %Core annotation