From b92206676c06c5a139c7c5eaa13455b0d9f40581 Mon Sep 17 00:00:00 2001 From: Rasmus Munk Larsen Date: Tue, 28 Jul 2020 19:19:37 +0000 Subject: Inherit alignment trait from argument in TensorBroadcasting to avoid segfault when the argument is unaligned. --- unsupported/Eigen/CXX11/src/Tensor/TensorBroadcasting.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'unsupported') diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorBroadcasting.h b/unsupported/Eigen/CXX11/src/Tensor/TensorBroadcasting.h index 3408f90d1..fc75c8d9a 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorBroadcasting.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorBroadcasting.h @@ -112,7 +112,7 @@ struct TensorEvaluator, Device> typedef typename Storage::Type EvaluatorPointerType; enum { - IsAligned = true, + IsAligned = TensorEvaluator::IsAligned, PacketAccess = TensorEvaluator::PacketAccess, BlockAccess = TensorEvaluator::BlockAccess, PreferBlockAccess = true, -- cgit v1.2.3