[llvm] [ADT] Fix llvm::concat_iterator for `ValueT == common_base_class *` (PR #144744)

Javier Lopez-Gomez via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 17 10:08:12 PDT 2025


================
@@ -996,13 +1003,17 @@ class concat_iterator
 
   static constexpr bool ReturnsByValue =
       !(std::is_reference_v<decltype(*std::declval<IterTs>())> && ...);
-
+  static constexpr bool ReturnsConvertibleType =
+      !all_types_equal_v<std::remove_cv_t<ValueT>,
+                         std::remove_cv_t<std::remove_reference_t<
----------------
jalopezg-git wrote:

Thank you :+1: -- I was not aware of `remove_cvref_t`!

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


More information about the llvm-commits mailing list