From 23648c6f6060379d4a3cd7df0664df9e7bf73690 Mon Sep 17 00:00:00 2001 From: Johannes Feldmann Date: Tue, 3 Apr 2018 11:43:40 +0200 Subject: [PATCH] Added default case to AddressDecoder::CreateInstance. --- DRAMSys/library/src/common/AddressDecoder.cpp | 3 +++ 1 file changed, 3 insertions(+) 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; } }