The type computation part is not needed. Differential Revision: https://reviews.llvm.org/D156652
applyMapToValues