Work around a Visual C++ bug.

Authored by probinson on May 23 2019, 8:07 AM.


Work around a Visual C++ bug.

Using a static function as a template parameter gets a bogus compile-time
error with Visual Studio 2017, prior to version 15.8. Our current
minimum-version requirement is a particular update to VS2015, and we
assume all Visual Studio 2017 versions are usable. This patch makes the
code buildable with older versions of VS2017, and can be reverted after
we upgrade the minimum version sometime in the future.

Description of the Microsoft bug:

Differential Revision: https://reviews.llvm.org/D62202

llvm-svn: 361502