bkramer added a comment. As far as I know we still support GCC 4.7, which doesn't have emplace in std::map. I don't think this patch will work with 4.7. Should we drop support for 4.7? https://reviews.llvm.org/D22712