aboutsummaryrefslogtreecommitdiffstats
path: root/riscV/TargetPrinter.ml
diff options
context:
space:
mode:
authorBernhard Schommer <bernhardschommer@gmail.com>2017-11-08 10:52:26 +0100
committerBernhard Schommer <bernhardschommer@gmail.com>2017-11-08 10:52:26 +0100
commit90f4de67b8cd1ac753d099100d4612cc3eabe4f1 (patch)
tree9c8627eb73d56f2247039c36c2e73df5388f9420 /riscV/TargetPrinter.ml
parent9e9c57616c9cf683ed65b1ba60510b8ae8066700 (diff)
downloadcompcert-kvx-90f4de67b8cd1ac753d099100d4612cc3eabe4f1.tar.gz
compcert-kvx-90f4de67b8cd1ac753d099100d4612cc3eabe4f1.zip
Fix jumptable issue.
Instead of using reset_constants use reset_literals which avoids emptying the jumptables. Bug 22525
Diffstat (limited to 'riscV/TargetPrinter.ml')
-rw-r--r--riscV/TargetPrinter.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/riscV/TargetPrinter.ml b/riscV/TargetPrinter.ml
index 4b976e17..19d8103b 100644
--- a/riscV/TargetPrinter.ml
+++ b/riscV/TargetPrinter.ml
@@ -149,7 +149,7 @@ module Target : TARGET =
fprintf oc "%a: .long 0x%lx\n" label lbl bf)
literal32_labels
end;
- reset_constants ()
+ reset_literals ()
end
(* Generate code to load the address of id + ofs in register r *)