LLVM_BUILD_TYPE=Debug now enables assertions.
Fix if (&ref==0) which gets optimized to false by current clang.