Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
CGen getfield fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Ehsan Totoni committed Dec 30, 2015
1 parent ff97e94 commit 5d276db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cgen.jl
Original file line number Diff line number Diff line change
Expand Up @@ -966,7 +966,7 @@ function from_getfield(args)
tgt = from_expr(args[1])
if isa(args[1], SymbolNode)
args1typ = args[1].typ
elseif isa(args[1], GenSym)
elseif isa(args[1], GenSym) || isa(args[1], Symbol)
args1typ = lstate.symboltable[args[1]]
else
throw("Unhandled argument 1 type to getfield")
Expand Down

0 comments on commit 5d276db

Please sign in to comment.