Debug intrinsics sometimes end up with empty metadata location operands. The debug intrinsic interfaces return nullptr when retrieving location operand in this case.
Skip empty-metadata dbg.declares to avoid dereferencing the nullptr. This doesn't affect the final debug info in any way.
N.B. my "empty metadata is the same as poison" patch stack (D140902) hasn't landed yet as I'm focussing on assignment tracking for now.