aboutsummaryrefslogtreecommitdiffstats
path: root/libevmasm/CommonSubexpressionEliminator.cpp
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-05-10 15:48:00 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-05-30 17:54:29 +0800
commit0c8beac35785a3c688c48c7f607832c30509c907 (patch)
tree042638c13656bd597f4c8fa719b28c71ddac058d /libevmasm/CommonSubexpressionEliminator.cpp
parent0066a08aa8f6c469cde7947ec50ca662a32123a0 (diff)
downloaddexon-solidity-0c8beac35785a3c688c48c7f607832c30509c907.tar.gz
dexon-solidity-0c8beac35785a3c688c48c7f607832c30509c907.tar.zst
dexon-solidity-0c8beac35785a3c688c48c7f607832c30509c907.zip
Rename the SHA3 assembly instruction to KECCAK256
Diffstat (limited to 'libevmasm/CommonSubexpressionEliminator.cpp')
-rw-r--r--libevmasm/CommonSubexpressionEliminator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libevmasm/CommonSubexpressionEliminator.cpp b/libevmasm/CommonSubexpressionEliminator.cpp
index fd4fffa6..70324e7f 100644
--- a/libevmasm/CommonSubexpressionEliminator.cpp
+++ b/libevmasm/CommonSubexpressionEliminator.cpp
@@ -234,7 +234,7 @@ void CSECodeGenerator::addDependencies(Id _c)
if (expr.item && expr.item->type() == Operation && (
expr.item->instruction() == Instruction::SLOAD ||
expr.item->instruction() == Instruction::MLOAD ||
- expr.item->instruction() == Instruction::SHA3
+ expr.item->instruction() == Instruction::KECCAK256
))
{
// this loads an unknown value from storage or memory and thus, in addition to its
@@ -260,7 +260,7 @@ void CSECodeGenerator::addDependencies(Id _c)
case Instruction::MLOAD:
knownToBeIndependent = m_expressionClasses.knownToBeDifferentBy32(slot, slotToLoadFrom);
break;
- case Instruction::SHA3:
+ case Instruction::KECCAK256:
{
Id length = expr.arguments.at(1);
AssemblyItem offsetInstr(Instruction::SUB, expr.item->location());