As discussed on https://lists.llvm.org/pipermail/llvm-dev/2020-September/145031.html
Previously, the getBaseObject() on a GlobalIFunc returned its resolver function,
but calling it on a GlobalAlias which points to a GlobalIFunc returned nullptr.
This patch fixes the issue and makes the recursive traversal more uniform by
starting with this rather than getOperand(0).