Fixes PR33966.
CFI code generation for users (not just callers) of a function depends
on whether this function has a jumptable entry or not. This
information needs to be encoded in thinlto cache key.
We filter the jumptable list against functions that are actually
referenced in the current module.
So GS can't be null here? If so, you can use dyn_cast below.