Skip to content

Commit 123165d

Browse files
committed
fixing #602
1 parent 83e2543 commit 123165d

File tree

2 files changed

+2
-15
lines changed

2 files changed

+2
-15
lines changed

src/ast.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -435,8 +435,8 @@ void jl_load_file_string(const char *text)
435435
jl_value_t *jl_expand(jl_value_t *expr)
436436
{
437437
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);
440440
jl_value_t *result;
441441
if (e == FL_T || e == FL_F || e == FL_EOF) {
442442
result = NULL;

src/cgutils.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -366,19 +366,6 @@ static jl_value_t *julia_type_of(Value *v)
366366
return jl_typeid_to_type(id);
367367
}
368368

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-
382369
static Value *NoOpCast(Value *v)
383370
{
384371
v = CastInst::Create(Instruction::BitCast, v, v->getType());

0 commit comments

Comments
 (0)