Forcing inlining of delegates and lazy

ABrightLight example at example.com
Tue Sep 1 17:07:59 UTC 2026


On Tuesday, 1 September 2026 at 15:58:12 UTC, FinalEvilution 
wrote:
> On Tuesday, 1 September 2026 at 14:01:40 UTC, ABrightLight 
> wrote:
>> I was using LDC and my code would lower to a jump to the 
>> delegate. I'll see if the llvm specific option works.
>
> If the option doesn't work out would you be able to provide a 
> reduced test case? I've become rather curious as to what's 
> going on.

Actually in your sample, if you go over to godbolt.org and 
compile with LDC and -O5 (or -Oz) you'll see that that `expr();` 
ends up being:
```
         mov     rdi, r14
         call    rbx
```


More information about the Digitalmars-d mailing list