aboutsummaryrefslogtreecommitdiffstats
path: root/libyul/AsmParser.h
diff options
context:
space:
mode:
Diffstat (limited to 'libyul/AsmParser.h')
-rw-r--r--libyul/AsmParser.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libyul/AsmParser.h b/libyul/AsmParser.h
index b40a717c..a02f0b4d 100644
--- a/libyul/AsmParser.h
+++ b/libyul/AsmParser.h
@@ -38,7 +38,7 @@ namespace yul
class Parser: public langutil::ParserBase
{
public:
- explicit Parser(langutil::ErrorReporter& _errorReporter, Dialect _dialect = Dialect::looseAssemblyForEVM()):
+ explicit Parser(langutil::ErrorReporter& _errorReporter, std::shared_ptr<Dialect> _dialect):
ParserBase(_errorReporter), m_dialect(std::move(_dialect)) {}
/// Parses an inline assembly block starting with `{` and ending with `}`.
@@ -86,7 +86,7 @@ protected:
static bool isValidNumberLiteral(std::string const& _literal);
private:
- Dialect m_dialect = Dialect::looseAssemblyForEVM();
+ std::shared_ptr<Dialect> m_dialect;
};
}