[IRMover] Use GlobalValue::getAddressSpace instead of directly from its type [NFC]
authorTeresa Johnson <tejohnson@google.com>
Tue, 5 Nov 2019 21:07:20 +0000 (13:07 -0800)
committerTeresa Johnson <tejohnson@google.com>
Tue, 5 Nov 2019 21:54:41 +0000 (13:54 -0800)
commitdce53d71987d9c44360d8a8d995ca2ad042f990f
tree27b1aec60a1bfd17629b4ade2fd9d03cb32bd2fe
parent37f4955c9baba9f981100b3137cb9486c0d75ce8
[IRMover] Use GlobalValue::getAddressSpace instead of directly from its type [NFC]

Summary: Change the old form of G->getType()->getAddressSpace() to the new G->getAddressSpace() (underneath does the same).

Patch by Ehud Katz <ehudkatz@gmail.com>

Reviewers: tejohnson, chandlerc

Reviewed By: tejohnson

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D69550
llvm/lib/Linker/IRMover.cpp