We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4764120 commit 91c8f4bCopy full SHA for 91c8f4b
lib/SILOptimizer/Mandatory/TFPartition.cpp
@@ -612,7 +612,12 @@ template<typename T> struct DenseMapInfo;
612
template<> struct DenseMapInfo<SourceRange> {
613
static SourceRange getEmptyKey() { return SourceRange(); }
614
615
- static SourceRange getTombstoneKey() { return SourceRange(); }
+ static SourceRange getTombstoneKey() {
616
+ // Make this different from empty key. See for context:
617
+ // http://lists.llvm.org/pipermail/llvm-dev/2015-July/088744.html
618
+ return SourceRange(SourceLoc(
619
+ SMLoc::getFromPointer(DenseMapInfo<const char *>::getTombstoneKey())));
620
+ }
621
622
static unsigned getHashValue(const SourceRange &Val) {
623
return hash_combine(
0 commit comments