diff options
author | chriseth <chris@ethereum.org> | 2018-10-17 23:05:49 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-17 23:05:49 +0800 |
commit | f2f72ff7eea9a461ae8c71a13428e499c8b91025 (patch) | |
tree | 02c46d9f13ff85b5a2ad3d124054bdfc71af4791 /libsolidity/codegen/ContractCompiler.cpp | |
parent | 6b7d182658988f22ba23cc3852510864881515e2 (diff) | |
parent | 16c2a775fd532c301eae3abecc8d68c5c421a9a0 (diff) | |
download | dexon-solidity-f2f72ff7eea9a461ae8c71a13428e499c8b91025.tar dexon-solidity-f2f72ff7eea9a461ae8c71a13428e499c8b91025.tar.gz dexon-solidity-f2f72ff7eea9a461ae8c71a13428e499c8b91025.tar.bz2 dexon-solidity-f2f72ff7eea9a461ae8c71a13428e499c8b91025.tar.lz dexon-solidity-f2f72ff7eea9a461ae8c71a13428e499c8b91025.tar.xz dexon-solidity-f2f72ff7eea9a461ae8c71a13428e499c8b91025.tar.zst dexon-solidity-f2f72ff7eea9a461ae8c71a13428e499c8b91025.zip |
Merge pull request #5227 from ethereum/doNotRemoveExternallyUsedFunction
Prevent externally used functions from being removed.
Diffstat (limited to 'libsolidity/codegen/ContractCompiler.cpp')
-rw-r--r-- | libsolidity/codegen/ContractCompiler.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libsolidity/codegen/ContractCompiler.cpp b/libsolidity/codegen/ContractCompiler.cpp index c845da8f..1fdf3483 100644 --- a/libsolidity/codegen/ContractCompiler.cpp +++ b/libsolidity/codegen/ContractCompiler.cpp @@ -874,9 +874,9 @@ void ContractCompiler::appendMissingFunctions() solAssert(m_context.nextFunctionToCompile() != function, "Compiled the wrong function?"); } m_context.appendMissingLowLevelFunctions(); - string abiFunctions = m_context.abiFunctions().requestedFunctions(); - if (!abiFunctions.empty()) - m_context.appendInlineAssembly("{" + move(abiFunctions) + "}", {}, true); + auto abiFunctions = m_context.abiFunctions().requestedFunctions(); + if (!abiFunctions.first.empty()) + m_context.appendInlineAssembly("{" + move(abiFunctions.first) + "}", {}, abiFunctions.second, true); } void ContractCompiler::appendModifierOrFunctionCode() |