# New LLVM error introduced in Enzyme v0.13.69

**URL:** <https://discourse.julialang.org/t/new-llvm-error-introduced-in-enzyme-v0-13-69/132080>\
**Category:** General Usage\
**Tags:** enzyme\
**Created:** [September 3, 2025, 8:21pm UTC](https://discourse.julialang.org/t/new-llvm-error-introduced-in-enzyme-v0-13-69/132080 "2025-09-03T20:21:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dameka](https://avatars.discourse-cdn.com/v4/letter/d/77aa72/32.png) [@dameka](https://discourse.julialang.org/u/dameka)\
**Post date:** [September 3, 2025, 8:21pm UTC](https://discourse.julialang.org/t/new-llvm-error-introduced-in-enzyme-v0-13-69/132080/1 "2025-09-03T20:21:03Z")

</div>

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:

```julia-auto
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.

---

<div class="post-metadata">

**Author:** ![wsmoses](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wsmoses/32/26497_2.png) [@wsmoses](https://discourse.julialang.org/u/wsmoses)\
**Post date:** [September 3, 2025, 9:13pm UTC](https://discourse.julialang.org/t/new-llvm-error-introduced-in-enzyme-v0-13-69/132080/2 "2025-09-03T21:13:49Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dameka](https://avatars.discourse-cdn.com/v4/letter/d/77aa72/32.png) [@dameka](https://discourse.julialang.org/u/dameka)\
**Post date:** [September 3, 2025, 9:23pm UTC](https://discourse.julialang.org/t/new-llvm-error-introduced-in-enzyme-v0-13-69/132080/4 "2025-09-03T21:23:53Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![wsmoses](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wsmoses/32/26497_2.png) [@wsmoses](https://discourse.julialang.org/u/wsmoses)\
**Post date:** [September 3, 2025, 9:29pm UTC](https://discourse.julialang.org/t/new-llvm-error-introduced-in-enzyme-v0-13-69/132080/5 "2025-09-03T21:29:25Z")

</div>

Yeah that’s fine
