Skip to content

Commit b1b5781

Browse files
committed
more info
1 parent 7f37f03 commit b1b5781

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/compiler.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6589,6 +6589,7 @@ function _thunk(job, postopt::Bool = true)::Tuple{LLVM.Module, Vector{Any}, Stri
65896589
end
65906590
else
65916591
propagate_returned!(mod)
6592+
Compiler.JIT.prepare!(mod)
65926593
end
65936594
mstr
65946595
else

src/errors.jl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1068,7 +1068,13 @@ function julia_error(
10681068
print(io, "Current scope: \n")
10691069
print(io, ir)
10701070
end
1071-
if !isa(val, LLVM.Argument)
1071+
legal, obj = absint(val)
1072+
if legal
1073+
println(io "\nValue of type: ", Core.Typeof(val))
1074+
println(io, " of value : ", val)
1075+
println(io)
1076+
end
1077+
if !isa(val, LLVM.Argument) && !isa(val, LLVM.GlobalVariable)
10721078
print(io, "\n Inverted pointers: \n")
10731079
ip = API.EnzymeGradientUtilsInvertedPointersToString(gutils)
10741080
sval = Base.unsafe_string(ip)

0 commit comments

Comments
 (0)