aboutsummaryrefslogtreecommitdiff
path: root/lib/Bytecode/Writer/Writer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Bytecode/Writer/Writer.cpp')
-rw-r--r--lib/Bytecode/Writer/Writer.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Bytecode/Writer/Writer.cpp b/lib/Bytecode/Writer/Writer.cpp
index 5b6fdd7900..3a17508e92 100644
--- a/lib/Bytecode/Writer/Writer.cpp
+++ b/lib/Bytecode/Writer/Writer.cpp
@@ -340,8 +340,6 @@ void BytecodeWriter::outputSymbolTable(const SymbolTable &MST) {
for (; I != End; ++I) {
// Symtab entry: [def slot #][name]
- const Value *V = I->second;
-
Slot = Table.getSlot(I->second);
assert(Slot != -1 && "Value in symtab but has no slot number!!");
output_vbr((unsigned)Slot, Out);
@@ -380,7 +378,7 @@ void llvm::WriteBytecodeToFile(const Module *C, std::ostream &Out) {
}
// Write out the chunk...
- Out.write((char*)ChunkPtr, LastPtr-ChunkPtr);
+ Out.write((char*)ChunkPtr, unsigned(LastPtr-ChunkPtr));
}
Out.flush();