File tree 2 files changed +2
-15
lines changed
2 files changed +2
-15
lines changed Original file line number Diff line number Diff line change @@ -435,8 +435,8 @@ void jl_load_file_string(const char *text)
435
435
jl_value_t * jl_expand (jl_value_t * expr )
436
436
{
437
437
int np = jl_gc_n_preserved_values ();
438
- value_t e = fl_applyn ( 1 , symbol_value ( symbol ( "jl-expand-to-thunk" )),
439
- julia_to_scm ( expr ) );
438
+ value_t arg = julia_to_scm ( expr );
439
+ value_t e = fl_applyn ( 1 , symbol_value ( symbol ( "jl-expand-to-thunk" )), arg );
440
440
jl_value_t * result ;
441
441
if (e == FL_T || e == FL_F || e == FL_EOF ) {
442
442
result = NULL ;
Original file line number Diff line number Diff line change @@ -366,19 +366,6 @@ static jl_value_t *julia_type_of(Value *v)
366
366
return jl_typeid_to_type (id);
367
367
}
368
368
369
- // see if a julia type maps directly to an llvm type
370
- static bool is_julia_type_representable (jl_value_t *jt)
371
- {
372
- return
373
- (jt == (jl_value_t *)jl_bool_type || jt == (jl_value_t *)jl_int8_type ||
374
- jt == (jl_value_t *)jl_int16_type || jt == (jl_value_t *)jl_int32_type ||
375
- jt == (jl_value_t *)jl_int64_type ||
376
- jt == (jl_value_t *)jl_float32_type ||
377
- jt == (jl_value_t *)jl_float64_type ||
378
- (jl_is_cpointer_type (jt) &&
379
- is_julia_type_representable (jl_tparam0 (jt))));
380
- }
381
-
382
369
static Value *NoOpCast (Value *v)
383
370
{
384
371
v = CastInst::Create (Instruction::BitCast, v, v->getType ());
You can’t perform that action at this time.
0 commit comments