C++: Undo a change that wasn't actually necessary.

This commit is contained in:
Mathias Vorreiter Pedersen
2024-02-09 10:28:24 +00:00
parent f7d1544ccf
commit dd3d70134c

View File

@@ -942,7 +942,7 @@ private Type getTypeImpl0(Type t, int indirectionIndex) {
or
indirectionIndex > 0 and
exists(Type stripped |
stripped = stripPointer(t) and
stripped = stripPointer(t.stripTopLevelSpecifiers()) and
// We need to avoid the case where `stripPointer(t) = t` (which can happen
// on iterators that specify a `value_type` that is the iterator itself).
// Such a type would create an infinite loop otherwise. For these cases we