mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-27 16:17:17 +00:00
Fix more warnings building with VC++
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14391 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user