In addition to the invocation case that is already diagnosed, also diagnose when a block reference appears on either side of a ternary selection operator. Until now, clang would accept the added test case only to crash during code generation.
llvm.amdgcn.raw.ptr.buffer.load
__builtin_amdgcn_raw_buffer_store_*