From f5f3eaacb9b8a82df99c3f4423b875a5f71c8006 Mon Sep 17 00:00:00 2001 From: chriseth Date: Wed, 30 Nov 2022 10:07:31 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: matheusaaguiar <95899911+matheusaaguiar@users.noreply.github.com> --- libyul/optimiser/KnowledgeBase.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libyul/optimiser/KnowledgeBase.cpp b/libyul/optimiser/KnowledgeBase.cpp index 36f07b74a..4b90acf9f 100644 --- a/libyul/optimiser/KnowledgeBase.cpp +++ b/libyul/optimiser/KnowledgeBase.cpp @@ -117,9 +117,9 @@ KnowledgeBase::VariableOffset KnowledgeBase::explore(YulString _var) optional KnowledgeBase::explore(Expression const& _value) { - if (Literal const* literal = std::get_if(&_value)) + if (Literal const* literal = get_if(&_value)) return VariableOffset{YulString{}, valueOfLiteral(*literal)}; - else if (Identifier const* identifier = std::get_if(&_value)) + else if (Identifier const* identifier = get_if(&_value)) return explore(identifier->name); else if (FunctionCall const* f = get_if(&_value)) {