Clang (at least on OSX) has optimization issues with the pointer version, which seem to be 'fixed' by using references. Note that using references here is not a bad thing anyway (none of these pointers would ever be expected to be NULL). Pull Request: https://projects.blender.org/blender/blender/pulls/124883