From 6807010dc7864500d89a833e4f6e7f338e58b948 Mon Sep 17 00:00:00 2001 From: chriseth Date: Tue, 14 Nov 2017 12:58:04 +0100 Subject: Prevent libraries from being called. --- libsolidity/codegen/Compiler.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'libsolidity/codegen/Compiler.cpp') diff --git a/libsolidity/codegen/Compiler.cpp b/libsolidity/codegen/Compiler.cpp index 44264a07..d3afada5 100644 --- a/libsolidity/codegen/Compiler.cpp +++ b/libsolidity/codegen/Compiler.cpp @@ -51,6 +51,7 @@ void Compiler::compileClone( map const& _contracts ) { + solAssert(!_contract.isLibrary(), ""); ContractCompiler runtimeCompiler(nullptr, m_runtimeContext, m_optimize); ContractCompiler cloneCompiler(&runtimeCompiler, m_context, m_optimize); m_runtimeSub = cloneCompiler.compileClone(_contract, _contracts); -- cgit