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

via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 9 17:10:28 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-llvm-adt

Author: Krystian Stasiowski (sdkrystian)

<details>
<summary>Changes</summary>

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

---
Full diff: https://github.com/llvm/llvm-project/pull/98252.diff


1 Files Affected:

- (modified) llvm/include/llvm/ADT/ArrayRef.h (+2-2) 


``````````diff
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;
     }
 

``````````

</details>


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


More information about the llvm-commits mailing list