From e449cd4ab0f5c00cb8c7ac5754dc2873c42199ee Mon Sep 17 00:00:00 2001 From: Valentin Churavy Date: Thu, 4 Apr 2019 15:09:11 -0400 Subject: [PATCH] fix undefined variable error in uncompress_ast (#31613) --- base/reflection.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/reflection.jl b/base/reflection.jl index 46f268feb9e0c..abf5268922933 100644 --- a/base/reflection.jl +++ b/base/reflection.jl @@ -903,7 +903,7 @@ uncompressed_ast(m::Method) = isdefined(m, :source) ? _uncompressed_ast(m, m.sou error("Code for this Method is not available.") _uncompressed_ast(m::Method, s::CodeInfo) = copy(s) _uncompressed_ast(m::Method, s::Array{UInt8,1}) = ccall(:jl_uncompress_ast, Any, (Any, Ptr{Cvoid}, Any), m, C_NULL, s)::CodeInfo -_uncompressed_ast(m::Core.CodeInstance, s::Array{UInt8,1}) = ccall(:jl_uncompress_ast, Any, (Any, Ptr{Cvoid}, Any), li.def.def::Method, li, s)::CodeInfo +_uncompressed_ast(ci::Core.CodeInstance, s::Array{UInt8,1}) = ccall(:jl_uncompress_ast, Any, (Any, Any, Any), ci.def.def::Method, ci, s)::CodeInfo function method_instances(@nospecialize(f), @nospecialize(t), world::UInt = typemax(UInt)) tt = signature_type(f, t)