[IR] Fix MSVC warning (NFC)
authorNikita Popov <nikita.ppv@gmail.com>
Fri, 17 Jul 2020 16:25:56 +0000 (18:25 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Fri, 17 Jul 2020 16:27:39 +0000 (18:27 +0200)
commitf7dce88915ad1629df2d19cd41e45a5e64f2664c
tree041e83c6a6907a7f457a6438ea4c238ee3b4781b
parent16458b5a6d624c07ffbf33ce958669b579bfc54e
[IR] Fix MSVC warning (NFC)

As requested by Andrew Kaylor, rewrite this code in a way that does
not warn on old MSVC versions.

Avoid the buggy constexpr warning by just not using constexpr and
removing the static_assert that depends on it.
llvm/lib/IR/Attributes.cpp