Yeah, seems like a bug. Variable access in naked function is currently very limited in LDC anyway, so probably nobody has tried to do that yet, if the restriction described in the doc comment also applies to LLVM.

I'd add a change to align it with the comment and the 32 bit implementation in a separate commit. If you can figure out a case where it is actually triggered (doesn't seem too hard), it would be great if you could include a test case, and remove that `#if !IN_LLVM` block (we are the only ones using still that source file anyway).