Skip to content

Commit

Permalink
Fix invalidations from StaticArrays' map! (#547)
Browse files Browse the repository at this point in the history
  • Loading branch information
thchr authored Sep 1, 2022
1 parent d16f86f commit 52a9268
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -727,12 +727,12 @@ function Base.StackTraces.StackFrame(frame::Frame)
scope = scopeof(frame)
if scope isa Method
method = scope
method_args = something.(frame.framedata.locals[1:method.nargs])
method_args = [something(frame.framedata.locals[i]) for i in 1:method.nargs]
atypes = Tuple{mapany(_Typeof, method_args)...}
sig = method.sig
sparams = Core.svec(frame.framedata.sparams...)
mi = Core.Compiler.specialize_method(method, atypes, sparams)
fname = frame.framecode.scope.name
fname = method.name
else
mi = frame.framecode.src
fname = gensym()
Expand Down

0 comments on commit 52a9268

Please sign in to comment.