Created attachment 25208
testcase.cpp
The attached testcase iterates through the std::map object with empty for-body.
clang-14 still generates some code in this function when it should be empty.
Replacing the type of the argument with std::vector correctly leads to an empty
function.
testcase.cpp
(173 bytes, text/x-c++src)