mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-27 15:41:46 +00:00
[polly] Fix regression tests with POLLY_ENABLE_GPGPU_CODEGEN
Apparently there was a latent bug here.
This commit is contained in:
parent
649977c6d7
commit
8422bfa3c3
@ -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);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user