Skip to content

Commit f5d83f9

Browse files
DinoVmeta-codesync[bot]
authored andcommitted
Fix failing RuntimeTests
Summary: These tests are failing because we don't setup things properly for the new frame handling. Reviewed By: yoney Differential Revision: D105354461 fbshipit-source-id: 11f99d0326b540782a9cbe5251dd7aa21059add9
1 parent 2c70e25 commit f5d83f9

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

cinderx/RuntimeTests/fixtures.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ std::unique_ptr<jit::hir::Function> RuntimeTest::buildHIR(
1919
JIT_CHECK(
2020
preloader->code() == func->func_code,
2121
"Expecting the last function to compile to be the first one preloaded");
22-
return jit::hir::buildHIR(*preloader);
22+
auto irfunc = jit::hir::buildHIR(*preloader);
23+
irfunc->reifier = jit::ThreadedRef<>::create(preloader->reifier());
24+
return irfunc;
2325
}
2426

2527
void HIRTest::TestBody() {

cinderx/RuntimeTests/lir_test.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ class LIRGeneratorTest : public RuntimeTest {
5252
env.ctx = getContext();
5353

5454
jit::CodeRuntime runtime{func};
55+
runtime.setReifier(irfunc->reifier);
5556
env.code_rt = &runtime;
5657

5758
LIRGenerator lir_gen(irfunc.get(), &env);

0 commit comments

Comments
 (0)