From 6c82c4295add7700bc0cbabfe21fd976cfdf693f Mon Sep 17 00:00:00 2001 From: Nav Date: Wed, 20 Mar 2024 21:28:05 +0000 Subject: [PATCH] Corrected return type of `getRegisterGroup()` member function in `Module` TDF struct --- src/Targets/TargetDescription/Module.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Targets/TargetDescription/Module.hpp b/src/Targets/TargetDescription/Module.hpp index 722d8ffc..e98298dd 100644 --- a/src/Targets/TargetDescription/Module.hpp +++ b/src/Targets/TargetDescription/Module.hpp @@ -44,7 +44,7 @@ namespace Targets::TargetDescription : std::nullopt; } - std::optional> getRegisterGroup(std::string_view keyStr) const { + const RegisterGroup& getRegisterGroup(std::string_view keyStr) const { const auto group = this->tryGetRegisterGroup(keyStr); if (!group.has_value()) { throw Exceptions::InvalidTargetDescriptionDataException(