diff options
author | Chris Lattner <sabre@nondot.org> | 2004-06-25 00:35:55 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-06-25 00:35:55 +0000 |
commit | d61622857fb4df110ee7dba11fd2955eaa14853c (patch) | |
tree | 5b36b907d752953b1e251efd88437ec3774b707c /lib/Bytecode | |
parent | 990a6a39c0f2899ace6e913d536db5abc030c5cc (diff) | |
download | external_llvm-d61622857fb4df110ee7dba11fd2955eaa14853c.zip external_llvm-d61622857fb4df110ee7dba11fd2955eaa14853c.tar.gz external_llvm-d61622857fb4df110ee7dba11fd2955eaa14853c.tar.bz2 |
Fix more warnings building with VC++
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14391 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode')
-rw-r--r-- | lib/Bytecode/Writer/SlotCalculator.cpp | 3 | ||||
-rw-r--r-- | lib/Bytecode/Writer/Writer.cpp | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/lib/Bytecode/Writer/SlotCalculator.cpp b/lib/Bytecode/Writer/SlotCalculator.cpp index 97d336e..94791e3 100644 --- a/lib/Bytecode/Writer/SlotCalculator.cpp +++ b/lib/Bytecode/Writer/SlotCalculator.cpp @@ -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"); } diff --git a/lib/Bytecode/Writer/Writer.cpp b/lib/Bytecode/Writer/Writer.cpp index 5b6fdd7..3a17508 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(); |