Fix JIT CodeGen for Try<>

This commit is contained in:
Thierry Treyer 2023-08-21 09:52:00 -07:00 committed by Thierry Treyer
parent c2a1728072
commit e60d06a321

View File

@ -20,6 +20,7 @@ template<typename T>
void getSizeType(const %1%<T> &container, size_t& returnArg) void getSizeType(const %1%<T> &container, size_t& returnArg)
{ {
SAVE_SIZE(sizeof(%1%<T>)); SAVE_SIZE(sizeof(%1%<T>));
SAVE_DATA((uintptr_t)&container);
if (container.hasValue()) { if (container.hasValue()) {
SAVE_DATA((uintptr_t)(&(container.value()))); SAVE_DATA((uintptr_t)(&(container.value())));
getSizeType(container.value(), returnArg); getSizeType(container.value(), returnArg);