diff --git a/llvm/include/llvm/ADT/PointerSumType.h b/llvm/include/llvm/ADT/PointerSumType.h --- a/llvm/include/llvm/ADT/PointerSumType.h +++ b/llvm/include/llvm/ADT/PointerSumType.h @@ -272,11 +272,12 @@ 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) {