Null check optimization

deadalnix via digitalmars-d-ldc digitalmars-d-ldc at
Fri Dec 4 15:33:01 PST 2015

Hi all,

I was at the LLVM meetup yesterday and talked with a contributor 
that use LLVM to run java code. One on the very interesting that 
came up is a way to use segfault in order to do null cheks. It is 
explained here:

I know that ldc generate null checks when calling various 
functions. It may be a good idea, considering this is unexpected, 
ot use the same mechanism in LDC.

More information about the digitalmars-d-ldc mailing list