From: JF Bastien Date: Sat, 30 Jan 2016 11:19:26 +0000 (+0000) Subject: WebAssembly NFC: fix build warning X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3ca3ea690fc4acd9c1fee392b03e5ee3563ec1ed;p=platform%2Fupstream%2Fllvm.git 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 @@ void WebAssemblyFrameLowering::emitPrologue(MachineFunction &MF, 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;