summaryrefslogtreecommitdiff
path: root/src/buildtool/build_engine/expression/expression.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildtool/build_engine/expression/expression.cpp')
-rw-r--r--src/buildtool/build_engine/expression/expression.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/buildtool/build_engine/expression/expression.cpp b/src/buildtool/build_engine/expression/expression.cpp
index 763f51f8..91d293bc 100644
--- a/src/buildtool/build_engine/expression/expression.cpp
+++ b/src/buildtool/build_engine/expression/expression.cpp
@@ -220,10 +220,10 @@ auto Expression::ComputeHash() const noexcept -> std::string {
: IsNode() ? "#"
: IsName() ? "$"
: ""};
- hash = hash_gen_.Run(prefix + ToString()).Bytes();
+ hash = HashFunction::ComputeHash(prefix + ToString()).Bytes();
}
else {
- auto hasher = hash_gen_.IncrementalHasher();
+ auto hasher = HashFunction::Hasher();
if (IsList()) {
auto list = Value<Expression::list_t>();
hasher.Update("[");
@@ -235,7 +235,7 @@ auto Expression::ComputeHash() const noexcept -> std::string {
auto map = Value<Expression::map_t>();
hasher.Update("{");
for (auto const& el : map->get()) {
- hasher.Update(hash_gen_.Run(el.first).Bytes());
+ hasher.Update(HashFunction::ComputeHash(el.first).Bytes());
hasher.Update(el.second->ToHash());
}
}