[PATCH] D94417: [ADT][Support] Disable C4146 MSVC warning

Vladislav Vinogradov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 11 07:24:16 PST 2021


vinograd47 created this revision.
vinograd47 added reviewers: rriddle, majnemer, dblaikie.
vinograd47 added a project: LLVM.
Herald added a subscriber: dexonsmith.
vinograd47 requested review of this revision.
Herald added a subscriber: llvm-commits.

An unary minus operator was applied to an unsigned type, resulting in an unsigned result.

      

For SDL mode (enabled by default) this warning is changed to error, which leads to build failure in 3rd-party projects that includes LLVM headers.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D94417

Files:
  llvm/include/llvm/ADT/StringExtras.h
  llvm/include/llvm/Support/MathExtras.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94417.315802.patch
Type: text/x-patch
Size: 3645 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210111/709264d0/attachment.bin>


More information about the llvm-commits mailing list