[llvm] r259303 - WebAssembly NFC: fix build warning
JF Bastien via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 30 03:19:27 PST 2016
Author: jfb
Date: Sat Jan 30 05:19:26 2016
New Revision: 259303
URL: http://llvm.org/viewvc/llvm-project?rev=259303&view=rev
Log:
WebAssembly NFC: fix build warning
WebAssemblyFrameLowering.cpp:158:44: warning: enumeral and non-enumeral type in conditional expression [enabled by default]
Modified:
llvm/trunk/lib/Target/WebAssembly/WebAssemblyFrameLowering.cpp
Modified: llvm/trunk/lib/Target/WebAssembly/WebAssemblyFrameLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/WebAssembly/WebAssemblyFrameLowering.cpp?rev=259303&r1=259302&r2=259303&view=diff
==============================================================================
--- llvm/trunk/lib/Target/WebAssembly/WebAssemblyFrameLowering.cpp (original)
+++ llvm/trunk/lib/Target/WebAssembly/WebAssemblyFrameLowering.cpp Sat Jan 30 05:19:26 2016
@@ -155,10 +155,10 @@ void WebAssemblyFrameLowering::emitProlo
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;
More information about the llvm-commits
mailing list