From 8faf4d3879908e0ef573ef1b96eca96b580ba5a3 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Tue, 6 Dec 2022 20:17:50 +0100 Subject: [PATCH] Reenable static jumps --- libsolidity/codegen/CompilerContext.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libsolidity/codegen/CompilerContext.h b/libsolidity/codegen/CompilerContext.h index 37c4e9218..3c31c46e4 100644 --- a/libsolidity/codegen/CompilerContext.h +++ b/libsolidity/codegen/CompilerContext.h @@ -213,11 +213,11 @@ public: evmasm::AssemblyItem const& _tag, evmasm::AssemblyItem::JumpType _jumpType = evmasm::AssemblyItem::JumpType::Ordinary ) { - *m_asm << _tag.pushTag(); - return appendJump(_jumpType); -// evmasm::AssemblyItem item = m_asm->appendStaticJump(_tag); -// item.setJumpType(_jumpType); -// return *this << item; +// *m_asm << _tag.pushTag(); +// return appendJump(_jumpType); + evmasm::AssemblyItem item = m_asm->appendStaticJump(_tag); + item.setJumpType(_jumpType); + return *this << item; } /// Appends pushing of a new tag and @returns the new tag. evmasm::AssemblyItem pushNewTag() { return m_asm->append(m_asm->newPushTag()).tag(); }