From a1165c135d15a5e8dcd92ac40f1ed3c39d040bb1 Mon Sep 17 00:00:00 2001 From: chriseth Date: Wed, 10 Jun 2020 18:25:19 +0200 Subject: [PATCH] Fix error codes. --- libsolidity/analysis/TypeChecker.cpp | 2 +- libyul/AsmAnalysis.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libsolidity/analysis/TypeChecker.cpp b/libsolidity/analysis/TypeChecker.cpp index ef30961aa..6ce458e9e 100644 --- a/libsolidity/analysis/TypeChecker.cpp +++ b/libsolidity/analysis/TypeChecker.cpp @@ -335,7 +335,7 @@ bool TypeChecker::visit(FunctionDefinition const& _function) if (_function.visibility() == Visibility::Private) m_errorReporter.typeError(3942_error, _function.location(), "\"virtual\" and \"private\" cannot be used together."); if (_function.libraryFunction()) - m_errorReporter.typeError(1878_error, _function.location(), "Library functions cannot be \"virtual\"."); + m_errorReporter.typeError(7801_error, _function.location(), "Library functions cannot be \"virtual\"."); } if (_function.isPayable()) diff --git a/libyul/AsmAnalysis.cpp b/libyul/AsmAnalysis.cpp index 2b6908142..a684fa963 100644 --- a/libyul/AsmAnalysis.cpp +++ b/libyul/AsmAnalysis.cpp @@ -592,7 +592,7 @@ bool AsmAnalyzer::warnOnInstructions(evmasm::Instruction _instr, SourceLocation else if (_instr == evmasm::Instruction::PC) { m_errorReporter.error( - 4316_error, + 2450_error, Error::Type::SyntaxError, _location, "PC instruction is a low-level EVM feature. "