diff options
author | Chip Kerchner <chip.kerchner@ibm.com> | 2021-04-02 16:27:08 +0000 |
---|---|---|
committer | David Tellenbach <david.tellenbach@me.com> | 2021-04-02 16:27:08 +0000 |
commit | c24bee6120d40987b15df0cbdaaa60e3de877e01 (patch) | |
tree | 0e5f00f31149782e02565c2b60b0d6653b6934f7 /Eigen/src/Core/arch/AltiVec/MatrixProductCommon.h | |
parent | e4233b6e3d378b57bfccda8e60f95cfc42f7856e (diff) |
Fix address of temporary object errors in clang11.
This fixes the problem with taking the address of temporary objects which clang11 treats as errors.
Diffstat (limited to 'Eigen/src/Core/arch/AltiVec/MatrixProductCommon.h')
-rw-r--r-- | Eigen/src/Core/arch/AltiVec/MatrixProductCommon.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/arch/AltiVec/MatrixProductCommon.h b/Eigen/src/Core/arch/AltiVec/MatrixProductCommon.h index 024767868..6e74116b9 100644 --- a/Eigen/src/Core/arch/AltiVec/MatrixProductCommon.h +++ b/Eigen/src/Core/arch/AltiVec/MatrixProductCommon.h @@ -214,7 +214,7 @@ EIGEN_STRONG_INLINE void bcouple_common<Packet2d, Packet1cd>(PacketBlock<Packet2 template<typename Scalar, typename Packet> EIGEN_STRONG_INLINE Packet ploadRhs(const Scalar* rhs) { - return *((Packet *)rhs); + return *reinterpret_cast<Packet *>(const_cast<Scalar *>(rhs)); } } // end namespace internal |