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
[ADT] Modernize IndexedMap with llvm::identity_cxx20 (NFC)
C++ is evolving in the direction of removing type alias
"argument_type" from functors.
This patch changes the default functor type to llvm::identity_cxx20,
backported from C++20, while templatizing those methods that use
toIndex_ with IndexT. This way we no longer need to take
argument_type from ToIndexT.
Now, identity_cxx20()(int) is of type int, causing mixed sign
comparisons, so this patch first assigns the result to a temporary
variable of type unsigned before feeding it to assert.
0 commit comments