diff --git a/llvm/lib/Target/Hexagon/HexagonVectorCombine.cpp b/llvm/lib/Target/Hexagon/HexagonVectorCombine.cpp --- a/llvm/lib/Target/Hexagon/HexagonVectorCombine.cpp +++ b/llvm/lib/Target/Hexagon/HexagonVectorCombine.cpp @@ -299,9 +299,10 @@ return getIfUnordered(dyn_cast(In)); } -#if !defined(_MSC_VER) || _MSC_VER >= 1924 -// VS2017 has trouble compiling this: +#if !defined(_MSC_VER) || _MSC_VER >= 1926 +// VS2017 and some versions of VS2019 have trouble compiling this: // error C2976: 'std::map': too few template arguments +// VS 2019 16.x is known to work, except for 16.4/16.5 (MSC_VER 1924/1925) template void erase_if(std::map &map, Pred p) #else