set compilation_target of assert loader to match that of predicate qualifier

This commit is contained in:
Mark Thom
2021-02-28 00:27:50 -07:00
parent 590a0b8077
commit 8c7494885f

View File

@@ -1738,6 +1738,8 @@ impl Machine {
let compile_assert = || {
let mut loader = Loader::new(LiveTermStream::new(ListingSource::User), self);
loader.load_state.compilation_target = compilation_target.clone();
let head = loader.read_term_from_heap(temp_v!(1))?;
let body = loader.read_term_from_heap(temp_v!(2))?;