WebAssembly NFC: fix build warning
WebAssemblyFrameLowering.cpp:158:44: warning: enumeral and non-enumeral type in conditional expression [enabled by default]
llvm-svn: 259303
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.cpp
index 2edcc3f..e0ff508 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.cpp
@@ -155,10 +155,10 @@
MachineMemOperand::MOLoad, 4, 4);
// Load the SP value.
BuildMI(MBB, InsertPt, DL, TII->get(WebAssembly::LOAD_I32),
- StackSize ? SPReg : WebAssembly::SP32)
- .addImm(0) // offset
+ StackSize ? SPReg : (unsigned)WebAssembly::SP32)
+ .addImm(0) // offset
.addReg(SPReg) // addr
- .addImm(2) // p2align
+ .addImm(2) // p2align
.addMemOperand(LoadMMO);
unsigned OffsetReg = 0;