aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-06-14 03:00:13 +0800
committerchriseth <chris@ethereum.org>2017-06-14 22:00:39 +0800
commit494b9dbfaae2b1cf4c4d76e0be457b1e077af30c (patch)
tree6d39de1926058caf2fafa38b6525d261fb7f8747 /libsolidity
parentbec30051c57098bef482c9be2537bda46b7571ee (diff)
downloaddexon-solidity-494b9dbfaae2b1cf4c4d76e0be457b1e077af30c.tar
dexon-solidity-494b9dbfaae2b1cf4c4d76e0be457b1e077af30c.tar.gz
dexon-solidity-494b9dbfaae2b1cf4c4d76e0be457b1e077af30c.tar.bz2
dexon-solidity-494b9dbfaae2b1cf4c4d76e0be457b1e077af30c.tar.lz
dexon-solidity-494b9dbfaae2b1cf4c4d76e0be457b1e077af30c.tar.xz
dexon-solidity-494b9dbfaae2b1cf4c4d76e0be457b1e077af30c.tar.zst
dexon-solidity-494b9dbfaae2b1cf4c4d76e0be457b1e077af30c.zip
Issue warning for using CREATE2 in inline assembly
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/inlineasm/AsmAnalysis.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/libsolidity/inlineasm/AsmAnalysis.cpp b/libsolidity/inlineasm/AsmAnalysis.cpp
index 7bcbde91..a3d38cc9 100644
--- a/libsolidity/inlineasm/AsmAnalysis.cpp
+++ b/libsolidity/inlineasm/AsmAnalysis.cpp
@@ -449,12 +449,13 @@ void AsmAnalyzer::warnOnFutureInstruction(solidity::Instruction _instr, SourceLo
{
switch (_instr)
{
+ case solidity::Instruction::CREATE2:
case solidity::Instruction::RETURNDATASIZE:
case solidity::Instruction::RETURNDATACOPY:
m_errorReporter.warning(
_location,
- "The RETURNDATASIZE/RETURNDATACOPY instructions are only available after "
- "the Metropolis hard fork. Before that they act as an invalid instruction."
+ "The \"" + _instr + "\" instruction is only available after " +
+ "the Metropolis hard fork. Before that it acts as an invalid instruction."
);
break;
default: