Pass the decl directly to the diagnostic, no need to call getDeclName().