[NFC] Use Aliasee to determine Type and AddrSpace in GlobalAlias::create()
authorArthur Eubanks <aeubanks@google.com>
Sun, 2 May 2021 04:44:32 +0000 (21:44 -0700)
committerArthur Eubanks <aeubanks@google.com>
Sun, 2 May 2021 18:50:08 +0000 (11:50 -0700)
commit99173fd03a079a788376c5cb993bc413ed8e020b
tree40ee27153b3e4e2d4345b60cdc79ac49b1f5f394
parent942e068d7a984b269b43f0748109a9568145359f
[NFC] Use Aliasee to determine Type and AddrSpace in GlobalAlias::create()

As opposed to going through the Aliasee type.

For opaque pointers, we're trying to remove uses of PointerType::getElementType().

Reviewed By: dblaikie

Differential Revision: https://reviews.llvm.org/D101715
llvm/lib/IR/Globals.cpp