diff options
author | chenquan <terasum@163.com> | 2018-01-05 20:43:24 +0800 |
---|---|---|
committer | chenquan <terasum@163.com> | 2018-01-05 20:43:24 +0800 |
commit | d0d952283776dd7a99f4b575e34f8a345ba01130 (patch) | |
tree | 3538eada3231357e8d8d384e43ea3add0e3306a6 /libsolidity/codegen/CompilerContext.cpp | |
parent | 42cc3915feaa85ec562d9496e92b50ac59edfdb3 (diff) | |
parent | 35095e9fcc53f76a1c73251497c265f399a9896c (diff) | |
download | dexon-solidity-d0d952283776dd7a99f4b575e34f8a345ba01130.tar dexon-solidity-d0d952283776dd7a99f4b575e34f8a345ba01130.tar.gz dexon-solidity-d0d952283776dd7a99f4b575e34f8a345ba01130.tar.bz2 dexon-solidity-d0d952283776dd7a99f4b575e34f8a345ba01130.tar.lz dexon-solidity-d0d952283776dd7a99f4b575e34f8a345ba01130.tar.xz dexon-solidity-d0d952283776dd7a99f4b575e34f8a345ba01130.tar.zst dexon-solidity-d0d952283776dd7a99f4b575e34f8a345ba01130.zip |
Merge branch 'develop' of https://github.com/ethereum/solidity into develop
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( |