mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-10 01:55:08 +00:00
[WebAssembly] Fix a compiler warning. NFC.
Fix a warning about a comparison between signed and unsigned integer expressions. llvm-svn: 288532
This commit is contained in:
parent
d755e4f587
commit
f295cc8fb5
@ -194,7 +194,7 @@ void WebAssemblyFrameLowering::emitPrologue(MachineFunction &MF,
|
||||
if (HasBP) {
|
||||
unsigned BitmaskReg = MRI.createVirtualRegister(PtrRC);
|
||||
unsigned Alignment = MFI.getMaxAlignment();
|
||||
assert((1 << countTrailingZeros(Alignment)) == Alignment &&
|
||||
assert((1u << countTrailingZeros(Alignment)) == Alignment &&
|
||||
"Alignment must be a power of 2");
|
||||
BuildMI(MBB, InsertPt, DL, TII->get(WebAssembly::CONST_I32), BitmaskReg)
|
||||
.addImm((int)~(Alignment - 1));
|
||||
|
Loading…
Reference in New Issue
Block a user