diff --git a/DRAMSys/library/src/common/AddressDecoder.cpp b/DRAMSys/library/src/common/AddressDecoder.cpp index 63e2e921..266e9bca 100644 --- a/DRAMSys/library/src/common/AddressDecoder.cpp +++ b/DRAMSys/library/src/common/AddressDecoder.cpp @@ -56,6 +56,9 @@ void AddressDecoder::createInstance(Type t) case Type::JSON: m_pInstance = new JSONAddressDecoder; break; + default: + throw std::logic_error("Instance type not supported."); + break; } }