Guard GCC-specific pragmas with "#ifdef EIGEN_COMP_GNUC"

(cherry picked from commit 5ceed0d57f14b0d9d62b8732f7f686b3aae56738)
This commit is contained in:
Rasmus Munk Larsen 2022-10-10 20:38:53 +00:00 committed by Antonio Sanchez
parent 28cd280726
commit 3fbb1c1b48

View File

@ -35,7 +35,7 @@
#ifndef EIGEN_INVERSE_SIZE_4_H
#define EIGEN_INVERSE_SIZE_4_H
#ifdef EIGEN_COMP_GNUC
#if !EIGEN_COMP_LLVM
// These routines requires bit manipulation of the sign, which is not compatible
// with fastmath.
#pragma GCC push_options
@ -356,7 +356,7 @@ struct compute_inverse_size4<Architecture::Target, double, MatrixType, ResultTyp
} // namespace internal
} // namespace Eigen
#ifdef EIGEN_COMP_GNUC
#if !EIGEN_COMP_LLVM
#pragma GCC pop_options
#endif