[llvm] [ADT] Fix missing 'template' keyword (PR #98252)

Krystian Stasiowski via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 9 17:09:59 PDT 2024


https://github.com/sdkrystian created https://github.com/llvm/llvm-project/pull/98252

Fixes instances where the `template` keyword should be used to interpret `<` as the delimiter of a _template-argument-list_ after #92957.

>From d95f909d3bbdc4079e0fe9c5b998121fc2accc57 Mon Sep 17 00:00:00 2001
From: Krystian Stasiowski <sdkrystian at gmail.com>
Date: Tue, 9 Jul 2024 20:07:53 -0400
Subject: [PATCH] [ADT] Fix missing 'template' keyword

---
 llvm/include/llvm/ADT/ArrayRef.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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<T>::operator=(Other);
-      Other.MutableArrayRef<T>::operator=(MutableArrayRef<T>());
+      this->template MutableArrayRef<T>::operator=(Other);
+      Other.template MutableArrayRef<T>::operator=(MutableArrayRef<T>());
       return *this;
     }
 



More information about the llvm-commits mailing list