fix(library/compiler/vm_compiler): prevent segfault
This commit is contained in:
parent
5075891f66
commit
41643d6400
2 changed files with 6 additions and 0 deletions
|
|
@ -335,6 +335,7 @@ environment vm_compile(environment const & env, buffer<pair<name, expr>> const &
|
|||
}
|
||||
|
||||
environment vm_compile(environment const & env, declaration const & d) {
|
||||
if (!d.is_definition()) return env;
|
||||
buffer<pair<name, expr>> procs;
|
||||
preprocess(env, d, procs);
|
||||
return vm_compile(env, procs);
|
||||
|
|
|
|||
5
tests/lean/run/declare_axiom.lean
Normal file
5
tests/lean/run/declare_axiom.lean
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
open tactic
|
||||
|
||||
run_command (do
|
||||
e ← to_expr `(false),
|
||||
add_decl $ declaration.ax `useful_assumption [] e)
|
||||
Loading…
Add table
Reference in a new issue