Skip to content

Commit b2363a8

Browse files
cameelnikola-matic
authored andcommitted
fixup! Type inference draft.
Rebase fixes
1 parent 3e4b22c commit b2363a8

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

Diff for: libsolidity/experimental/ast/TypeSystem.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ TypeSystem::TypeSystem()
138138
for (auto [type, name, arity]: std::initializer_list<std::tuple<PrimitiveType, char const*, size_t>>{
139139
{PrimitiveType::TypeFunction, "tfun", 2},
140140
{PrimitiveType::Function, "fun", 2},
141-
{PrimitiveType::Function, "itself", 1},
141+
{PrimitiveType::Itself, "itself", 1},
142142
{PrimitiveType::Void, "void", 0},
143143
{PrimitiveType::Unit, "unit", 0},
144144
{PrimitiveType::Pair, "pair", 2},

Diff for: libsolidity/interface/CompilerStack.cpp

-3
Original file line numberDiff line numberDiff line change
@@ -1475,9 +1475,6 @@ void CompilerStack::generateIR(ContractDefinition const& _contract)
14751475
{
14761476
solAssert(m_stackState >= AnalysisSuccessful, "");
14771477

1478-
if (m_experimentalAnalysis)
1479-
solThrow(CompilerError, "IR codegen after experimental analysis is unsupported.");
1480-
14811478
Contract& compiledContract = m_contracts.at(_contract.fullyQualifiedName());
14821479
if (!compiledContract.yulIR.empty())
14831480
return;

0 commit comments

Comments
 (0)