[polly] Fix regression tests with POLLY_ENABLE_GPGPU_CODEGEN

Apparently there was a latent bug here.
This commit is contained in:
Eli Friedman 2021-07-18 18:37:05 -07:00
parent 649977c6d7
commit 8422bfa3c3

View File

@ -802,7 +802,8 @@ void BlockGenerator::generateScalarStores(
// The new Val might have a different type than the old Val due to
// ScalarEvolution looking through bitcasts.
Address = Builder.CreateBitOrPointerCast(
Address, Val->getType()->getPointerTo());
Address, Val->getType()->getPointerTo(
Address->getType()->getPointerAddressSpace()));
Builder.CreateStore(Val, Address);
});