From 7e018179a185fa4291848e9c1e188456b0666ced Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Mon, 14 Sep 2020 14:33:57 +0100 Subject: [PATCH] Turn if statement into assertion --- libsolidity/ast/AST.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libsolidity/ast/AST.cpp b/libsolidity/ast/AST.cpp index cac28eac0..37ab84075 100644 --- a/libsolidity/ast/AST.cpp +++ b/libsolidity/ast/AST.cpp @@ -191,9 +191,7 @@ vector, FunctionTypePointer>> const& ContractDefinition: functions.push_back(TypeProvider::function(*v)); for (FunctionTypePointer const& fun: functions) { - if (!fun->interfaceFunctionType()) - // Fails hopefully because we already registered the error - continue; + solAssert(fun->interfaceFunctionType(), ""); string functionSignature = fun->externalSignature(); if (signaturesSeen.count(functionSignature) == 0) {