Skip to content

Commit

Permalink
fixup! assert empty description string
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusaaguiar committed May 16, 2024
1 parent e4bf0db commit f7a7cf4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libsolidity/analysis/DeclarationTypeChecker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ void DeclarationTypeChecker::endVisit(VariableDeclaration const& _variable)
typeLoc = DataLocation::Transient;
break;
default:
solAssert(false, "");
solAssert(false);
break;
}
}
Expand Down
2 changes: 1 addition & 1 deletion libsolidity/formal/ModelChecker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ void ModelChecker::checkRequestedSourcesAndContracts(std::vector<std::shared_ptr
struct TransientDataLocationChecker: ASTConstVisitor
{
TransientDataLocationChecker(SourceUnit const& _sourceUnit) { _sourceUnit.accept(*this); }
void endVisit(VariableDeclaration const& _var) { solUnimplementedAssert(_var.referenceLocation() != VariableDeclaration::Location::Transient, ""); }
void endVisit(VariableDeclaration const& _var) { solUnimplementedAssert(_var.referenceLocation() != VariableDeclaration::Location::Transient); }
};

for (auto const& source: _sources)
Expand Down

0 comments on commit f7a7cf4

Please sign in to comment.