Skip to content

Commit

Permalink
Add missing template keywords
Browse files Browse the repository at this point in the history
GCC 14 warns about these.

Reviewed By: ABataev

Differential Revision: https://reviews.llvm.org/D121047
  • Loading branch information
alexey-bataev committed Apr 7, 2022
1 parent e22a60b commit 8e066b8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions llvm/include/llvm/ADT/PointerSumType.h
Expand Up @@ -272,11 +272,12 @@ struct DenseMapInfo<PointerSumType<TagT, MemberTs...>> {
using SomePointerInfo = DenseMapInfo<SomePointerT>;

static inline SumType getEmptyKey() {
return SumType::create<SomeTag>(SomePointerInfo::getEmptyKey());
return SumType::template create<SomeTag>(SomePointerInfo::getEmptyKey());
}

static inline SumType getTombstoneKey() {
return SumType::create<SomeTag>(SomePointerInfo::getTombstoneKey());
return SumType::template create<SomeTag>(
SomePointerInfo::getTombstoneKey());
}

static unsigned getHashValue(const SumType &Arg) {
Expand Down

0 comments on commit 8e066b8

Please sign in to comment.