File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
llvm/tools/sycl-post-link Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -783,6 +783,10 @@ namespace {
783783 }
784784
785785 }
786+
787+ llvm::hash_code AspectsHash =
788+ llvm::hash_combine_range (Aspects.begin (), Aspects.end ());
789+ Hash = static_cast <unsigned >(llvm::hash_combine (AspectsHash));
786790 }
787791
788792 std::string getName (StringRef BaseName) const {
@@ -814,6 +818,7 @@ namespace {
814818
815819 private:
816820 // For DenseMap:
821+ llvm::hash_code Hash = {};
817822 bool IsTombstoneKey = false ;
818823 bool IsEmpty = false ;
819824
@@ -834,9 +839,7 @@ namespace {
834839 }
835840
836841 unsigned hash () const {
837- llvm::hash_code AspectsHash =
838- llvm::hash_combine_range (Aspects.begin (), Aspects.end ());
839- return static_cast <unsigned >(llvm::hash_combine (AspectsHash));
842+ return static_cast <unsigned >(Hash);
840843 }
841844 };
842845
You can’t perform that action at this time.
0 commit comments