From: Dan Gohman Date: Fri, 2 Dec 2016 20:13:05 +0000 (+0000) Subject: [WebAssembly] Fix a compiler warning. NFC. X-Git-Tag: llvmorg-4.0.0-rc1~3131 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f295cc8fb58690bf3e2975d85abbb7eed5b1efdd;p=platform%2Fupstream%2Fllvm.git [WebAssembly] Fix a compiler warning. NFC. Fix a warning about a comparison between signed and unsigned integer expressions. llvm-svn: 288532 --- diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.cpp index 25b203a..a6a2c0b 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.cpp +++ b/llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.cpp @@ -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));