diff --git a/libsolidity/interface/AssemblyStack.cpp b/libsolidity/interface/AssemblyStack.cpp
index ff345089d..c27bd0399 100644
--- a/libsolidity/interface/AssemblyStack.cpp
+++ b/libsolidity/interface/AssemblyStack.cpp
@@ -50,7 +50,7 @@ yul::Dialect languageToDialect(AssemblyStack::Language _language)
case AssemblyStack::Language::Assembly:
return yul::Dialect::looseAssemblyForEVM();
case AssemblyStack::Language::StrictAssembly:
- return yul::Dialect::strictAssemblyForEVM();
+ return yul::Dialect::strictAssemblyForEVMObjects();
case AssemblyStack::Language::Yul:
return yul::Dialect::yul();
}
diff --git a/libyul/CMakeLists.txt b/libyul/CMakeLists.txt
index 7ed84ff5c..e7383e4ab 100644
--- a/libyul/CMakeLists.txt
+++ b/libyul/CMakeLists.txt
@@ -6,6 +6,7 @@ add_library(yul
AsmPrinter.cpp
AsmScope.cpp
AsmScopeFiller.cpp
+ Dialect.cpp
Object.cpp
ObjectParser.cpp
backends/evm/EVMAssembly.cpp
diff --git a/libyul/Dialect.cpp b/libyul/Dialect.cpp
new file mode 100644
index 000000000..997187874
--- /dev/null
+++ b/libyul/Dialect.cpp
@@ -0,0 +1,76 @@
+/*
+ This file is part of solidity.
+
+ solidity is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ solidity is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with solidity. If not, see .
+*/
+/**
+ * Yul dialect.
+ */
+
+#include
+
+#include