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: unassignedb...@nondot.org
Reporter: p...@windfall.com
CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs