Skip to content

Commit

Permalink
Merge pull request #18655 from musm/fixcodenative
Browse files Browse the repository at this point in the history
Fix codenative for new syntax option
  • Loading branch information
kshyatt committed Sep 26, 2016
2 parents 0a04242 + 7212982 commit 39f48a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/reflection.jl
Expand Up @@ -554,8 +554,8 @@ Switch assembly syntax using `syntax` symbol parameter set to `:att` for AT&T sy
"""
code_native(io::IO, f::ANY, types::ANY=Tuple, syntax::Symbol=:att) =
print(io, _dump_function(f, types, true, false, false, false, syntax))
code_native(f::ANY, types::ANY=Tuple) = code_native(STDOUT, f, types, :att)

code_native(f::ANY, types::ANY=Tuple, syntax::Symbol=:att) = code_native(STDOUT, f, types, syntax)
code_native(::IO, ::ANY, ::Symbol) = error("illegal code_native call") # resolve ambiguous call

# give a decent error message if we try to instantiate a staged function on non-leaf types
function func_for_method_checked(m::Method, types::ANY)
Expand Down

0 comments on commit 39f48a3

Please sign in to comment.