aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.cpp
diff options
context:
space:
mode:
authorDan Gohman <dan433584@gmail.com>2016-12-02 20:13:05 +0000
committerDan Gohman <dan433584@gmail.com>2016-12-02 20:13:05 +0000
commitf295cc8fb58690bf3e2975d85abbb7eed5b1efdd (patch)
tree6742a8320b17835da460a54153da776f5db54a7c /llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.cpp
parentd755e4f587033ee37445a73d84de4483d9c9a6ee (diff)
downloadllvm-f295cc8fb58690bf3e2975d85abbb7eed5b1efdd.zip
llvm-f295cc8fb58690bf3e2975d85abbb7eed5b1efdd.tar.gz
llvm-f295cc8fb58690bf3e2975d85abbb7eed5b1efdd.tar.bz2
[WebAssembly] Fix a compiler warning. NFC.
Fix a warning about a comparison between signed and unsigned integer expressions. llvm-svn: 288532
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.cpp')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.cpp2
1 files changed, 1 insertions, 1 deletions
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));