diff options
author | chriseth <chris@ethereum.org> | 2018-01-04 21:24:19 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-01-04 21:29:03 +0800 |
commit | 00692a4ff66551ae99920380cc4e43de377e63c7 (patch) | |
tree | 23bcb8e95ddcceffb30b59c0c0ad7e5213d6b158 /libsolidity/codegen/CompilerContext.cpp | |
parent | 2cdd789b5d371de6612dadb4ae9a18359cf150df (diff) | |
download | dexon-solidity-00692a4ff66551ae99920380cc4e43de377e63c7.tar.gz dexon-solidity-00692a4ff66551ae99920380cc4e43de377e63c7.tar.zst dexon-solidity-00692a4ff66551ae99920380cc4e43de377e63c7.zip |
Reset source location after using inline assembly.
Diffstat (limited to 'libsolidity/codegen/CompilerContext.cpp')
-rw-r--r-- | libsolidity/codegen/CompilerContext.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libsolidity/codegen/CompilerContext.cpp b/libsolidity/codegen/CompilerContext.cpp index ce9c3b7f..ab10d7dd 100644 --- a/libsolidity/codegen/CompilerContext.cpp +++ b/libsolidity/codegen/CompilerContext.cpp @@ -347,6 +347,9 @@ void CompilerContext::appendInlineAssembly( solAssert(errorReporter.errors().empty(), "Failed to analyze inline assembly block."); assembly::CodeGenerator::assemble(*parserResult, analysisInfo, *m_asm, identifierAccess, _system); + + // Reset the source location to the one of the node (instead of the CODEGEN source location) + updateSourceLocation(); } FunctionDefinition const& CompilerContext::resolveVirtualFunction( |