This fixes code like the following on AVR:
void foo(void) {
}
void bar(void) __attribute__((alias("foo")));Code like this is present in compiler-rt, which I'm trying to build.
I'm not sure how to add a test for this, are there any examples I can look at? And does this need a test at all, considering how trivial the change is?
Aliasee->getType()->getPointerAddressSpace()
LGTM. If we ever allow functions to declare an explicit address space, we'll need semantic checks that aliases match up, but that's okay.