GlobalIFunc: Make ifunc respect function address spaces
This commit is contained in:
@@ -2873,8 +2873,8 @@ Error BitcodeReader::resolveGlobalAndIndirectSymbolInits() {
|
||||
Type *ResolverFTy =
|
||||
GlobalIFunc::getResolverFunctionType(GI->getValueType());
|
||||
// Transparently fix up the type for compatibility with older bitcode
|
||||
GI->setResolver(
|
||||
ConstantExpr::getBitCast(C, ResolverFTy->getPointerTo()));
|
||||
GI->setResolver(ConstantExpr::getBitCast(
|
||||
C, ResolverFTy->getPointerTo(GI->getAddressSpace())));
|
||||
} else {
|
||||
return error("Expected an alias or an ifunc");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user