New LLVM error introduced in Enzyme v0.13.69

I recently updated my Enzyme package version from 0.13.68 (fully working) and incurred a new kind of bug I haven’t encountered before. I verified this bug exists in all versions of Enzyme since 0.13.69 inclusive. I am not posting a MWE right now since my code base is pretty involved and I haven’t been able to find the breaking point, but I am happy to work with Enzyme devs (probably @wsmoses) to make a MWE/find the issue. I would just ask for ideas on what sort of code to look for, or some kind of command tool along the lines of @code_warntype to help me find the problem area.

Here is the error I’m getting:

LLVM ERROR: SmallVector unable to grow. Requested capacity (4294967296) is larger than maximum value for size type (4294967295)
in expression starting at /Users/daningburg/Documents/Code/nuclear-diffprog/nn_xsec.jl:75
__pthread_kill at /usr/lib/system/libsystem_kernel.dylib (unknown line)
Allocations: 457427566 (Pool: 457418966; Big: 8600); GC: 199
Abort trap: 6

My code involved functions such as spherical harmonics, spherical Bessel functions, and clebsch-gordan coefficients. I’m using Enzyme to take the gradient of the loss with respect to the parameters of a Lux neural network.

That’s really weird, yeah if you can share the big code that would be helpful to see what’s up

I’ll take a moment to sanitize it (create fake data instead of read it in, etc). Do you mind if I message you the code directly? It’s research code I’m working on and while I plan to open source it eventually, I’ll be publishing first.

Yeah that’s fine