You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Revert "[Clang] Add a builtin that deduplicate types into a pack (llvm#106730)"
This reverts commits 85043c1 and
65de318.
The first commit above triggers the following warnings:
clang/lib/Sema/SemaTemplateVariadic.cpp:1069:22: error: variable
'TST' set but not used [-Werror,-Wunused-but-set-variable]
lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp:4148:11:
error: enumeration value 'SubstBuiltinTemplatePack' not handled in
switch [-Werror,-Wswitch]
4148 | switch (qual_type->getTypeClass()) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp:4852:11:
error: enumeration value 'SubstBuiltinTemplatePack' not handled in
switch [-Werror,-Wswitch]
4852 | switch (qual_type->getTypeClass()) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp:5153:11:
error: enumeration value 'SubstBuiltinTemplatePack' not handled in
switch [-Werror,-Wswitch]
5153 | switch (qual_type->getTypeClass()) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
Copy file name to clipboardExpand all lines: clang/docs/ReleaseNotes.rst
-16Lines changed: 0 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -148,22 +148,6 @@ Non-comprehensive list of changes in this release
148
148
correct method to check for these features is to test for the ``__PTRAUTH__``
149
149
macro.
150
150
151
-
- Added a new builtin, ``__builtin_dedup_pack``, to remove duplicate types from a parameter pack.
152
-
This feature is particularly useful in template metaprogramming for normalizing type lists.
153
-
The builtin produces a new, unexpanded parameter pack that can be used in contexts like template
154
-
argument lists or base specifiers.
155
-
156
-
.. code-block:: c++
157
-
158
-
template <typename...> struct TypeList;
159
-
160
-
// The resulting type is TypeList<int, double, char>
161
-
using MyTypeList = TypeList<__builtin_dedup_pack<int, double, int, char, double>...>;
162
-
163
-
Currently, the use of ``__builtin_dedup_pack`` is limited to template arguments and base
164
-
specifiers, it also must be used within a template context.
165
-
166
-
167
151
New Compiler Flags
168
152
------------------
169
153
- New option ``-fno-sanitize-annotate-debug-info-traps`` added to disable emitting trap reasons into the debug info when compiling with trapping UBSan (e.g. ``-fsanitize-trap=undefined``).
0 commit comments