aboutsummaryrefslogtreecommitdiff
path: root/ReplaceRefs.hs
diff options
context:
space:
mode:
Diffstat (limited to 'ReplaceRefs.hs')
-rw-r--r--ReplaceRefs.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/ReplaceRefs.hs b/ReplaceRefs.hs
index 821952b..f9490ef 100644
--- a/ReplaceRefs.hs
+++ b/ReplaceRefs.hs
@@ -16,6 +16,7 @@ replaceRefsIns from to (IAri at a b c) = IAri at (trans from to a) (trans from t
replaceRefsIns from to (ICall n al) = ICall n (map (trans from to) al)
replaceRefsIns from to (ICallr a n al) = ICallr (trans from to a) n (map (trans from to) al)
replaceRefsIns from to (IResize a b) = IResize (trans from to a) (trans from to b)
+replaceRefsIns _ _ IDebugger = IDebugger
replaceRefsIns _ _ INop = INop
replaceRefsTerm :: Ref -> Ref -> IRTerm -> IRTerm
@@ -23,6 +24,7 @@ replaceRefsTerm from to (IJcc ct a b i1 i2) = IJcc ct (trans from to a) (trans f
replaceRefsTerm _ _ (IJmp i) = IJmp i
replaceRefsTerm _ _ IRet = IRet
replaceRefsTerm from to (IRetr a) = IRetr (trans from to a)
+replaceRefsTerm _ _ IUnreachable = IUnreachable
replaceRefsTerm _ _ ITermNone = ITermNone
replaceRefsBB :: Ref -> Ref -> BB -> BB