From 8e066b86a73205cdaf758a9dd4d761406d39bff1 Mon Sep 17 00:00:00 2001 From: Alexey Bataev Date: Thu, 7 Apr 2022 06:18:17 -0700 Subject: [PATCH] Add missing template keywords GCC 14 warns about these. Reviewed By: ABataev Differential Revision: https://reviews.llvm.org/D121047 --- llvm/include/llvm/ADT/PointerSumType.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/llvm/include/llvm/ADT/PointerSumType.h b/llvm/include/llvm/ADT/PointerSumType.h index a7ef774e205e6..57f045035a784 100644 --- a/llvm/include/llvm/ADT/PointerSumType.h +++ b/llvm/include/llvm/ADT/PointerSumType.h @@ -272,11 +272,12 @@ struct DenseMapInfo> { using SomePointerInfo = DenseMapInfo; static inline SumType getEmptyKey() { - return SumType::create(SomePointerInfo::getEmptyKey()); + return SumType::template create(SomePointerInfo::getEmptyKey()); } static inline SumType getTombstoneKey() { - return SumType::create(SomePointerInfo::getTombstoneKey()); + return SumType::template create( + SomePointerInfo::getTombstoneKey()); } static unsigned getHashValue(const SumType &Arg) {