[PATCH] D121047: Add missing template keywords

Christoph GrĂ¼ninger via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Mar 5 11:19:46 PST 2022


gruenich updated this revision to Diff 413235.

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D121047/new/

https://reviews.llvm.org/D121047

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


Index: llvm/include/llvm/ADT/PointerSumType.h
===================================================================
--- llvm/include/llvm/ADT/PointerSumType.h
+++ llvm/include/llvm/ADT/PointerSumType.h
@@ -272,11 +272,12 @@
   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) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D121047.413235.patch
Type: text/x-patch
Size: 749 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220305/1ea5cc13/attachment.bin>


More information about the llvm-commits mailing list