[llvm] 34f220a - Fix gcc 7.5 build break after TypeSize ctors became constexpr
Paul Robinson via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 19 13:18:08 PST 2022
Author: Paul Robinson
Date: 2022-12-19T13:17:38-08:00
New Revision: 34f220ae3257f0beb0e3440e87f36c89d62cfc4e
URL: https://github.com/llvm/llvm-project/commit/34f220ae3257f0beb0e3440e87f36c89d62cfc4e
DIFF: https://github.com/llvm/llvm-project/commit/34f220ae3257f0beb0e3440e87f36c89d62cfc4e.diff
LOG: Fix gcc 7.5 build break after TypeSize ctors became constexpr
As seen here: https://lab.llvm.org/staging/#/builders/235/builds/1135
Added:
Modified:
llvm/unittests/Support/LinearPolyBaseTest.cpp
Removed:
################################################################################
diff --git a/llvm/unittests/Support/LinearPolyBaseTest.cpp b/llvm/unittests/Support/LinearPolyBaseTest.cpp
index f9a2d4e7521ee..15b366210bca4 100644
--- a/llvm/unittests/Support/LinearPolyBaseTest.cpp
+++ b/llvm/unittests/Support/LinearPolyBaseTest.cpp
@@ -94,7 +94,7 @@ using Univariate3DBase = UnivariateLinearPolyBase<Univariate3D>;
class Univariate3D : public Univariate3DBase {
public:
using ScalarTy = Univariate3DBase::ScalarTy;
- Univariate3D(ScalarTy x, unsigned Dim) : Univariate3DBase(x, Dim) {}
+ constexpr Univariate3D(ScalarTy x, unsigned Dim) : Univariate3DBase(x, Dim) {}
Univariate3D(const Univariate3DBase &Convert) : Univariate3DBase(Convert) {}
};
More information about the llvm-commits
mailing list