diff --git a/src/arch/generic/vec_pred_reg.hh b/src/arch/generic/vec_pred_reg.hh index eb96949eba..ad6bcceff1 100644 --- a/src/arch/generic/vec_pred_reg.hh +++ b/src/arch/generic/vec_pred_reg.hh @@ -1,4 +1,4 @@ -// Copyright (c) 2017 ARM Limited +// Copyright (c) 2017, 2021 Arm Limited // All rights reserved // // The license below extends only to copyright in the software and shall @@ -344,23 +344,25 @@ class VecPredRegContainer /// @tparam VecElem Type of the vector elements. /// @{ template - VecPredRegT + auto as() const { static_assert(NumBits % sizeof(VecElem) == 0, "Container size incompatible with view size."); - return VecPredRegT( - *this); + return VecPredRegT(*this); } template - VecPredRegT + auto as() { static_assert(NumBits % sizeof(VecElem) == 0, "Container size incompatible with view size."); - return VecPredRegT( - *this); + return VecPredRegT(*this); } /// @} };