Skip to content

Commit

Permalink
fixup! Type inference draft.
Browse files Browse the repository at this point in the history
Rebase fixes
  • Loading branch information
cameel authored and nikola-matic committed Sep 13, 2023
1 parent 3e4b22c commit b2363a8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion libsolidity/experimental/ast/TypeSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ TypeSystem::TypeSystem()
for (auto [type, name, arity]: std::initializer_list<std::tuple<PrimitiveType, char const*, size_t>>{
{PrimitiveType::TypeFunction, "tfun", 2},
{PrimitiveType::Function, "fun", 2},
{PrimitiveType::Function, "itself", 1},
{PrimitiveType::Itself, "itself", 1},
{PrimitiveType::Void, "void", 0},
{PrimitiveType::Unit, "unit", 0},
{PrimitiveType::Pair, "pair", 2},
Expand Down
3 changes: 0 additions & 3 deletions libsolidity/interface/CompilerStack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1475,9 +1475,6 @@ void CompilerStack::generateIR(ContractDefinition const& _contract)
{
solAssert(m_stackState >= AnalysisSuccessful, "");

if (m_experimentalAnalysis)
solThrow(CompilerError, "IR codegen after experimental analysis is unsupported.");

Contract& compiledContract = m_contracts.at(_contract.fullyQualifiedName());
if (!compiledContract.yulIR.empty())
return;
Expand Down

0 comments on commit b2363a8

Please sign in to comment.