summaryrefslogtreecommitdiff
path: root/lib/Bytecode/Writer
diff options
context:
space:
mode:
authorJeff Cohen <jeffc@jolt-lang.org>2005-05-07 02:44:04 +0000
committerJeff Cohen <jeffc@jolt-lang.org>2005-05-07 02:44:04 +0000
commit39cef6025938dbe428e01eb7c273b07cbdf3e8ab (patch)
tree9a7eec982a70292ae8bc7ffaeae58d4234654336 /lib/Bytecode/Writer
parent7939b7817088c2939c4ff434af1ef9f4f8505eba (diff)
downloadllvm-39cef6025938dbe428e01eb7c273b07cbdf3e8ab.tar.gz
llvm-39cef6025938dbe428e01eb7c273b07cbdf3e8ab.tar.bz2
llvm-39cef6025938dbe428e01eb7c273b07cbdf3e8ab.tar.xz
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
Diffstat (limited to 'lib/Bytecode/Writer')
-rw-r--r--lib/Bytecode/Writer/Writer.cpp4
1 files changed, 2 insertions, 2 deletions
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<InvokeInst>(I)->getCallingConv());
} else if (Opcode == 58) { // Call escape sequence
output_vbr((cast<CallInst>(I)->getCallingConv() << 1) |
- cast<CallInst>(I)->isTailCall());
+ unsigned(cast<CallInst>(I)->isTailCall()));
}
} else {
int Slot = Table.getSlot(I->getOperand(0));
@@ -731,7 +731,7 @@ void BytecodeWriter::outputInstruction(const Instruction &I) {
const CallInst &CI = cast<CallInst>(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];
}