From 0578feaabc3508d398b674e4fda93f52634713dc Mon Sep 17 00:00:00 2001 From: Antonio Sanchez Date: Fri, 22 Oct 2021 13:27:32 -0700 Subject: [PATCH] Remove const from visitor return type. This seems to interfere with `pload`/`ploadu`, since `pload` are not defined. This should unbreak the arm/ppc builds. --- Eigen/src/Core/Visitor.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Eigen/src/Core/Visitor.h b/Eigen/src/Core/Visitor.h index b9d7b612b..cb5524517 100644 --- a/Eigen/src/Core/Visitor.h +++ b/Eigen/src/Core/Visitor.h @@ -122,8 +122,8 @@ public: explicit visitor_evaluator(const XprType &xpr) : m_evaluator(xpr), m_xpr(xpr) { } typedef typename XprType::Scalar Scalar; - typedef typename XprType::CoeffReturnType CoeffReturnType; - typedef typename XprType::PacketReturnType PacketReturnType; + typedef typename internal::remove_const::type CoeffReturnType; + typedef typename internal::remove_const::type PacketReturnType; EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index rows() const EIGEN_NOEXCEPT { return m_xpr.rows(); } EIGEN_DEVICE_FUNC EIGEN_CONSTEXPR Index cols() const EIGEN_NOEXCEPT { return m_xpr.cols(); }