[PATCH] D121047: Add missing template keywords
Christoph GrĂ¼ninger via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Mar 5 08:24:13 PST 2022
gruenich created this revision.
Herald added a subscriber: dexonsmith.
Herald added a project: All.
gruenich requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
GCC 14 warns about these.
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,11 @@
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.413215.patch
Type: text/x-patch
Size: 739 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220305/251c26e5/attachment.bin>
More information about the llvm-commits
mailing list