From 291c00c3decd89f3338777ce8836a974b216cd2a Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Fri, 3 Jul 2020 12:26:55 +0100 Subject: [PATCH] Remove errenous error duplication and move some tests around --- libyul/AsmAnalysis.cpp | 2 -- .../inlineAssembly/{pc.sol => invalid/pc_disallowed.sol} | 0 2 files changed, 2 deletions(-) rename test/libsolidity/syntaxTests/inlineAssembly/{pc.sol => invalid/pc_disallowed.sol} (100%) diff --git a/libyul/AsmAnalysis.cpp b/libyul/AsmAnalysis.cpp index 2c7a4b940..b8f0dd4e7 100644 --- a/libyul/AsmAnalysis.cpp +++ b/libyul/AsmAnalysis.cpp @@ -646,8 +646,6 @@ bool AsmAnalyzer::validateInstructions(evmasm::Instruction _instr, SourceLocatio "PC instruction is a low-level EVM feature. " "Because of that PC is disallowed in strict assembly." ); - else if (_instr == evmasm::Instruction::SELFBALANCE && !m_evmVersion.hasSelfBalance()) - errorForVM(3672_error, "only available for Istanbul-compatible"); else return false; diff --git a/test/libsolidity/syntaxTests/inlineAssembly/pc.sol b/test/libsolidity/syntaxTests/inlineAssembly/invalid/pc_disallowed.sol similarity index 100% rename from test/libsolidity/syntaxTests/inlineAssembly/pc.sol rename to test/libsolidity/syntaxTests/inlineAssembly/invalid/pc_disallowed.sol