[llvm] 8e066b8 - Add missing template keywords

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 7 07:13:12 PDT 2022


Author: Alexey Bataev
Date: 2022-04-07T07:08:44-07:00
New Revision: 8e066b86a73205cdaf758a9dd4d761406d39bff1

URL: https://github.com/llvm/llvm-project/commit/8e066b86a73205cdaf758a9dd4d761406d39bff1
DIFF: https://github.com/llvm/llvm-project/commit/8e066b86a73205cdaf758a9dd4d761406d39bff1.diff

LOG: Add missing template keywords

GCC 14 warns about these.

Reviewed By: ABataev

Differential Revision: https://reviews.llvm.org/D121047

Added: 
    

Modified: 
    llvm/include/llvm/ADT/PointerSumType.h

Removed: 
    


################################################################################
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<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) {


        


More information about the llvm-commits mailing list