summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/uml.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/uml.cpp')
-rw-r--r--src/devices/cpu/uml.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/cpu/uml.cpp b/src/devices/cpu/uml.cpp
index 6555eff161d..a26f3a92038 100644
--- a/src/devices/cpu/uml.cpp
+++ b/src/devices/cpu/uml.cpp
@@ -257,10 +257,10 @@ inline u64 rol64(u64 source, u8 count)
uml::code_handle::code_handle(drcuml_state &drcuml, const char *name)
: m_code(reinterpret_cast<drccodeptr *>(drcuml.cache().alloc_near(sizeof(drccodeptr))))
, m_string(name)
- , m_next(nullptr)
, m_drcuml(drcuml)
{
- if (m_code == nullptr)
+ (void)m_drcuml; // without this, non-debug builds fail because the asserts are preprocessed out
+ if (!m_code)
throw std::bad_alloc();
*m_code = nullptr;
}