aboutsummaryrefslogtreecommitdiffstats
path: root/cfrontend/SimplLocalsproof.v
diff options
context:
space:
mode:
authorJason Gross <jgross@mit.edu>2018-08-27 11:13:47 -0400
committerXavier Leroy <xavier.leroy@inria.fr>2018-08-27 19:39:16 +0200
commitf6f537dd60336b599c9541b0dca56255bdf2ba5e (patch)
treef0f483a0221cb89b0cc898d9473a1e4b0664a0a7 /cfrontend/SimplLocalsproof.v
parented4761bea21dee59b576240ae284f34e91dd9070 (diff)
downloadcompcert-kvx-f6f537dd60336b599c9541b0dca56255bdf2ba5e.tar.gz
compcert-kvx-f6f537dd60336b599c9541b0dca56255bdf2ba5e.zip
Import prim token notations before using them
This is required for compatibility with https://github.com/coq/coq/pull/8064, where prim token notations no longer follow `Require`, but instead follow `Import`. Closes #246 Closes #250
Diffstat (limited to 'cfrontend/SimplLocalsproof.v')
-rw-r--r--cfrontend/SimplLocalsproof.v2
1 files changed, 1 insertions, 1 deletions
diff --git a/cfrontend/SimplLocalsproof.v b/cfrontend/SimplLocalsproof.v
index 7af499f4..26d3d347 100644
--- a/cfrontend/SimplLocalsproof.v
+++ b/cfrontend/SimplLocalsproof.v
@@ -1053,7 +1053,7 @@ Proof.
assert (RPSRC: Mem.range_perm m bsrc (Ptrofs.unsigned osrc) (Ptrofs.unsigned osrc + sizeof tge ty) Cur Nonempty).
eapply Mem.range_perm_implies. eapply Mem.loadbytes_range_perm; eauto. auto with mem.
assert (RPDST: Mem.range_perm m bdst (Ptrofs.unsigned odst) (Ptrofs.unsigned odst + sizeof tge ty) Cur Nonempty).
- replace (sizeof tge ty) with (Z.of_nat (length bytes)).
+ replace (sizeof tge ty) with (Z.of_nat (List.length bytes)).
eapply Mem.range_perm_implies. eapply Mem.storebytes_range_perm; eauto. auto with mem.
rewrite LEN. apply nat_of_Z_eq. omega.
assert (PSRC: Mem.perm m bsrc (Ptrofs.unsigned osrc) Cur Nonempty).