aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/codegen/CompilerContext.cpp
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-12-06 21:01:39 +0800
committerGitHub <noreply@github.com>2018-12-06 21:01:39 +0800
commit0e8841005ca7bf93545a1bc76bd8fa0ed67cb32d (patch)
treea247b6ea5b9b305e60d9e4d403e805335415ba6f /libsolidity/codegen/CompilerContext.cpp
parent1643d63e3af1b0e3aabac2f2ded3619505d0fa8c (diff)
parent073b03d90c8f0648ba135f0b30d8e72fd871478f (diff)
downloaddexon-solidity-0e8841005ca7bf93545a1bc76bd8fa0ed67cb32d.tar
dexon-solidity-0e8841005ca7bf93545a1bc76bd8fa0ed67cb32d.tar.gz
dexon-solidity-0e8841005ca7bf93545a1bc76bd8fa0ed67cb32d.tar.bz2
dexon-solidity-0e8841005ca7bf93545a1bc76bd8fa0ed67cb32d.tar.lz
dexon-solidity-0e8841005ca7bf93545a1bc76bd8fa0ed67cb32d.tar.xz
dexon-solidity-0e8841005ca7bf93545a1bc76bd8fa0ed67cb32d.tar.zst
dexon-solidity-0e8841005ca7bf93545a1bc76bd8fa0ed67cb32d.zip
Merge pull request #5554 from ethereum/cp-SourceReferenceFormatter-refactor
[2/3] Refactor SourceReferenceFormatter (split-out data extraction & make use of new SourceLocation knowledge)
Diffstat (limited to 'libsolidity/codegen/CompilerContext.cpp')
-rw-r--r--libsolidity/codegen/CompilerContext.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/libsolidity/codegen/CompilerContext.cpp b/libsolidity/codegen/CompilerContext.cpp
index 5ccdac37..dac09c2e 100644
--- a/libsolidity/codegen/CompilerContext.cpp
+++ b/libsolidity/codegen/CompilerContext.cpp
@@ -386,8 +386,7 @@ void CompilerContext::appendInlineAssembly(
for (auto const& error: errorReporter.errors())
message += SourceReferenceFormatter::formatExceptionInformation(
*error,
- (error->type() == Error::Type::Warning) ? "Warning" : "Error",
- [&](string const&) -> Scanner const& { return *scanner; }
+ (error->type() == Error::Type::Warning) ? "Warning" : "Error"
);
message += "-------------------------------------------\n";