[all-commits] [llvm/llvm-project] f7dce8: [IR] Fix MSVC warning (NFC)

Nikita Popov via All-commits all-commits at lists.llvm.org
Fri Jul 17 09:28:03 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: f7dce88915ad1629df2d19cd41e45a5e64f2664c
      https://github.com/llvm/llvm-project/commit/f7dce88915ad1629df2d19cd41e45a5e64f2664c
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2020-07-17 (Fri, 17 Jul 2020)

  Changed paths:
    M llvm/lib/IR/Attributes.cpp

  Log Message:
  -----------
  [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.




More information about the All-commits mailing list