[llvm-bugs] [Bug 47974] New: SIShrinkInstructions.cpp causes warning with Visual Studio 2019 on Windows 7
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Oct 26 08:29:43 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=47974
Bug ID: 47974
Summary: SIShrinkInstructions.cpp causes warning with Visual
Studio 2019 on Windows 7
Product: libraries
Version: trunk
Hardware: PC
OS: Windows XP
Status: NEW
Severity: normal
Priority: P
Component: Backend: AMDGPU
Assignee: unassignedbugs at nondot.org
Reporter: paul at windfall.com
CC: llvm-bugs at lists.llvm.org
I am building LLVM with Microsoft Visual Studio 2019. The following line in
SIShrinkInstructions.cpp produces a warning, which is treated as an error.
if (Size > 1 && (I->getNumImplicitOperands() > (I->isCopy() ? 0 : 1)))
produces
...SIShrinkInstructions.cpp(551): warning C4018: '>': signed/unsigned mismatch
The problem is fixed by using 0U and 1U.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20201026/03c1fbb4/attachment-0001.html>
More information about the llvm-bugs
mailing list