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 {
783
783
}
784
784
785
785
}
786
+
787
+ llvm::hash_code AspectsHash =
788
+ llvm::hash_combine_range (Aspects.begin (), Aspects.end ());
789
+ Hash = static_cast <unsigned >(llvm::hash_combine (AspectsHash));
786
790
}
787
791
788
792
std::string getName (StringRef BaseName) const {
@@ -814,6 +818,7 @@ namespace {
814
818
815
819
private:
816
820
// For DenseMap:
821
+ llvm::hash_code Hash = {};
817
822
bool IsTombstoneKey = false ;
818
823
bool IsEmpty = false ;
819
824
@@ -834,9 +839,7 @@ namespace {
834
839
}
835
840
836
841
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);
840
843
}
841
844
};
842
845
You can’t perform that action at this time.
0 commit comments