diff options
author | Eli Friedman <efriedma@quicinc.com> | 2021-07-18 18:37:05 -0700 |
---|---|---|
committer | Eli Friedman <efriedma@quicinc.com> | 2021-07-18 18:43:01 -0700 |
commit | 8422bfa3c3bde72dfa544a15ed95222765ef20b2 (patch) | |
tree | 09126679a7d65ebe3fbab358a6ac7b2fc5ff56cd /polly | |
parent | 649977c6d74072c07980fa6f88ab3c490f8b1263 (diff) | |
download | llvm-8422bfa3c3bde72dfa544a15ed95222765ef20b2.zip llvm-8422bfa3c3bde72dfa544a15ed95222765ef20b2.tar.gz llvm-8422bfa3c3bde72dfa544a15ed95222765ef20b2.tar.bz2 |
[polly] Fix regression tests with POLLY_ENABLE_GPGPU_CODEGEN
Apparently there was a latent bug here.
Diffstat (limited to 'polly')
-rw-r--r-- | polly/lib/CodeGen/BlockGenerators.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/polly/lib/CodeGen/BlockGenerators.cpp b/polly/lib/CodeGen/BlockGenerators.cpp index 946bc09b..f8cc47c 100644 --- a/polly/lib/CodeGen/BlockGenerators.cpp +++ b/polly/lib/CodeGen/BlockGenerators.cpp @@ -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); }); |