aboutsummaryrefslogtreecommitdiffstats
path: root/lib/hipe/icode/hipe_icode.erl
diff options
context:
space:
mode:
authorJohannes Weißl <[email protected]>2013-11-05 22:18:57 +0100
committerHenrik Nord <[email protected]>2014-01-10 11:28:49 +0100
commit5f712405e51a01900bb90a88939066da19182f22 (patch)
tree7f954d410feac2df32864ee2ded2f975a7715dc0 /lib/hipe/icode/hipe_icode.erl
parent039ea3a6ed5dc147478f294910ba042850db2383 (diff)
downloadotp-5f712405e51a01900bb90a88939066da19182f22.tar.gz
otp-5f712405e51a01900bb90a88939066da19182f22.tar.bz2
otp-5f712405e51a01900bb90a88939066da19182f22.zip
hipe: Fix compilation with 'no_remove_comments'
To reproduce the error: $ echo '-module(hello).' > hello.erl $ erl 1> c(hello, [native,{hipe,[no_remove_comments]}]). [...] <HiPE (v 3.10.2.1)> Error: [hipe:834]: ERROR: {{case_clause, {icode_comment,call_ext_only}}, [{hipe_icode,successors,1, [{file,"hipe_icode.erl"}, {line,1444}]}, [...]
Diffstat (limited to 'lib/hipe/icode/hipe_icode.erl')
-rw-r--r--lib/hipe/icode/hipe_icode.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/hipe/icode/hipe_icode.erl b/lib/hipe/icode/hipe_icode.erl
index 6d4758bbf1..0e651a351c 100644
--- a/lib/hipe/icode/hipe_icode.erl
+++ b/lib/hipe/icode/hipe_icode.erl
@@ -1464,6 +1464,7 @@ successors(I) ->
case fail_label(I) of [] -> []; L when is_integer(L) -> [L] end;
#icode_enter{} -> [];
#icode_return{} -> [];
+ #icode_comment{} -> [];
%% the following are included here for handling linear code
#icode_move{} -> [];
#icode_begin_handler{} -> []