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