diff --git a/llvm/include/llvm/ADT/ArrayRef.h b/llvm/include/llvm/ADT/ArrayRef.h index ac40ec4a6b240..18fff7808ace1 100644 --- a/llvm/include/llvm/ADT/ArrayRef.h +++ b/llvm/include/llvm/ADT/ArrayRef.h @@ -460,8 +460,8 @@ namespace llvm { OwningArrayRef &operator=(OwningArrayRef &&Other) { delete[] this->data(); - this->MutableArrayRef::operator=(Other); - Other.MutableArrayRef::operator=(MutableArrayRef()); + this->template MutableArrayRef::operator=(Other); + Other.template MutableArrayRef::operator=(MutableArrayRef()); return *this; }