allocators icon indicating copy to clipboard operation
allocators copied to clipboard

Should the empty block be a constant rather than a constructor?

Open rphmeier opened this issue 10 years ago • 0 comments

Using a constant could be finicky with block lifetimes, which is why I've opted to use a constructor for now. Since the empty() constructor always returns the same value, I think llvm should be able to optimize it to a constant, but I am not sure.

rphmeier avatar Oct 19 '15 23:10 rphmeier