From 39cef6025938dbe428e01eb7c273b07cbdf3e8ab Mon Sep 17 00:00:00 2001 From: Jeff Cohen Date: Sat, 7 May 2005 02:44:04 +0000 Subject: Silence VC++ warnings about unsafe mixing of ints and bools with the | operator. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21758 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Bytecode/Writer/Writer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/Bytecode/Writer') diff --git a/lib/Bytecode/Writer/Writer.cpp b/lib/Bytecode/Writer/Writer.cpp index 81c86d6ffa..aafc3529c3 100644 --- a/lib/Bytecode/Writer/Writer.cpp +++ b/lib/Bytecode/Writer/Writer.cpp @@ -461,7 +461,7 @@ void BytecodeWriter::outputInstructionFormat0(const Instruction *I, output_vbr(cast(I)->getCallingConv()); } else if (Opcode == 58) { // Call escape sequence output_vbr((cast(I)->getCallingConv() << 1) | - cast(I)->isTailCall()); + unsigned(cast(I)->isTailCall())); } } else { int Slot = Table.getSlot(I->getOperand(0)); @@ -731,7 +731,7 @@ void BytecodeWriter::outputInstruction(const Instruction &I) { const CallInst &CI = cast(I); ++NumOperands; if (NumOperands < 3) { - Slots[NumOperands-1] = (CI.getCallingConv() << 1) | CI.isTailCall(); + Slots[NumOperands-1] = (CI.getCallingConv() << 1)|unsigned(CI.isTailCall()); if (Slots[NumOperands-1] > MaxOpSlot) MaxOpSlot = Slots[NumOperands-1]; } -- cgit v1.2.3-70-g09d2