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