JitBase: Ensure JitOptions and JitState instances are consistently initialized

Ensures that upon construction of a JitBase instance, that all
underlying members within the option and state structs are guaranteed
to be initialized.

This prevents potentially using a member uninitialized in some form.
This commit is contained in:
Lioncash 2018-03-19 15:50:17 -04:00
parent f335790623
commit 51cfeb8c7d
1 changed files with 2 additions and 2 deletions

View File

@ -110,8 +110,8 @@ protected:
public:
// This should probably be removed from public:
JitOptions jo;
JitState js;
JitOptions jo{};
JitState js{};
JitBase();
~JitBase() override;