1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00

Fix more warnings building with VC++

llvm-svn: 14391
This commit is contained in:
Chris Lattner 2004-06-25 00:35:55 +00:00
parent c5c6255889
commit 33ebfe4339
2 changed files with 3 additions and 4 deletions

View File

@ -717,7 +717,8 @@ int SlotCalculator::insertValue(const Value *D, bool dontIgnore) {
// If we haven't seen this sub type before, add it to our type table!
if (getSlot(SubTy) == -1) {
SC_DEBUG(" Inserting subtype: " << SubTy->getDescription() << "\n");
int Slot = doInsertValue(SubTy);
SC_DEBUG(int Slot = );
doInsertValue(SubTy);
SC_DEBUG(" Inserted subtype: " << SubTy->getDescription() <<
" slot=" << Slot << "\n");
}

View File

@ -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();