diff --git a/llvm/unittests/Support/LinearPolyBaseTest.cpp b/llvm/unittests/Support/LinearPolyBaseTest.cpp index 85507012003d..407e9b6ae80f 100644 --- a/llvm/unittests/Support/LinearPolyBaseTest.cpp +++ b/llvm/unittests/Support/LinearPolyBaseTest.cpp @@ -12,10 +12,13 @@ using namespace llvm; class Poly3D; -template <> struct llvm::LinearPolyBaseTypeTraits { + +namespace llvm { +template <> struct LinearPolyBaseTypeTraits { using ScalarTy = int64_t; static const unsigned Dimensions = 3; }; +} using Poly3DBase = LinearPolyBase; class Poly3D : public Poly3DBase { @@ -80,10 +83,12 @@ TEST(LinearPolyBase, Poly3D_Invert) { } class Univariate3D; -template <> struct llvm::LinearPolyBaseTypeTraits { +namespace llvm { +template <> struct LinearPolyBaseTypeTraits { using ScalarTy = int64_t; static const unsigned Dimensions = 3; }; +} using Univariate3DBase = UnivariateLinearPolyBase; class Univariate3D : public Univariate3DBase {