some warning from VS2005 (requested by gabor)

Hi,

Some random sample of VS warning:

Lot of 64 bits conversions:

AsmPrinter.cpp
..\..\lib\CodeGen\AsmPrinter.cpp(277) : warning C4244: 'initializing' :
conversion from 'uint64_t' to 'unsigned int', possible loss of data
..\..\lib\CodeGen\AsmPrinter.cpp(614) : warning C4244: 'argument' :
conversion from 'uint64_t' to 'int', possible loss of data
..\..\lib\CodeGen\AsmPrinter.cpp(894) : warning C4244: 'initializing' :
conversion from 'uint64_t' to 'unsigned int', possible loss of data
..\..\lib\CodeGen\AsmPrinter.cpp(1273) : warning C4244: 'initializing' :
conversion from 'int64_t' to 'unsigned int', possible loss of data
..\..\lib\CodeGen\AsmPrinter.cpp(1280) : warning C4244: 'initializing' :
conversion from 'int64_t' to 'unsigned int', possible loss of data
DwarfWriter.cpp
..\..\lib\CodeGen\DwarfWriter.cpp(383) : warning C4244: 'argument' :
conversion from 'uint64_t' to 'unsigned int', possible loss of data
..\..\lib\CodeGen\DwarfWriter.cpp(1197) : warning C4244: 'argument' :
conversion from 'uint64_t' to 'unsigned int', possible loss of data
..\..\lib\CodeGen\DwarfWriter.cpp(1215) : warning C4244: 'argument' :
conversion from 'uint64_t' to 'unsigned int', possible loss of data
..\..\lib\CodeGen\DwarfWriter.cpp(3203) : warning C4244: 'initializing' :
conversion from 'int64_t' to 'unsigned int', possible loss of data
..\..\lib\CodeGen\DwarfWriter.cpp(3543) : warning C4244: 'argument' :
conversion from 'uint64_t' to 'int', possible loss of data
..\..\lib\CodeGen\DwarfWriter.cpp(3545) : warning C4244: 'argument' :
conversion from 'uint64_t' to 'int', possible loss of data
..\..\lib\CodeGen\DwarfWriter.cpp(3547) : warning C4244: 'argument' :
conversion from 'uint64_t' to 'int', possible loss of data
..\..\lib\CodeGen\DwarfWriter.cpp(3550) : warning C4244: 'argument' :
conversion from 'uint64_t' to 'unsigned int', possible loss of data
..\..\lib\CodeGen\DwarfWriter.cpp(3551) : warning C4244: 'argument' :
conversion from 'uint64_t' to 'int', possible loss of data
..\..\lib\CodeGen\DwarfWriter.cpp(3569) : warning C4244: 'argument' :
conversion from 'const uint64_t' to 'unsigned int', possible loss of data
..\..\lib\CodeGen\DwarfWriter.cpp(3570) : warning C4244: 'argument' :
conversion from 'const uint64_t' to 'int', possible loss of data
MachineModuleInfo.cpp
..\..\lib\CodeGen\MachineModuleInfo.cpp(200) : warning C4244: '=' :
conversion from 'int64_t' to 'int', possible loss of data
..\..\lib\CodeGen\MachineModuleInfo.cpp(204) : warning C4244: '=' :
conversion from 'uint64_t' to 'unsigned int', possible loss of data
..\..\lib\CodeGen\MachineModuleInfo.cpp(244) : warning C4244: 'argument' :
conversion from 'uint64_t' to 'unsigned int', possible loss of data
..\..\lib\CodeGen\MachineModuleInfo.cpp(1891) : warning C4244:
'initializing' : conversion from 'int64_t' to 'unsigned int', possible loss
of dat
DAGCombiner.cpp
..\..\lib\CodeGen\SelectionDAG\DAGCombiner.cpp(1802) : warning C4244: '=' :
conversion from 'uint64_t' to 'unsigned int', possible loss of data
..\..\lib\CodeGen\SelectionDAG\DAGCombiner.cpp(2018) : warning C4244:
'argument' : conversion from 'uint64_t' to 'uint32_t', possible loss of data
..\..\lib\CodeGen\SelectionDAG\DAGCombiner.cpp(2022) : warning C4244:
'argument' : conversion from 'uint64_t' to 'uint32_t', possible loss of data
..\..\lib\CodeGen\SelectionDAG\DAGCombiner.cpp(2358) : warning C4244:
'argument' : conversion from 'uint64_t' to 'unsigned int', possible loss of
data
..\..\lib\CodeGen\SelectionDAG\DAGCombiner.cpp(2398) : warning C4244:
'initializing' : conversion from 'uint64_t' to 'unsigned int', possible loss
of data
..\..\lib\CodeGen\SelectionDAG\DAGCombiner.cpp(2417) : warning C4244:
'argument' : conversion from 'uint64_t' to 'unsigned int', possible loss of
data
..\..\lib\CodeGen\SelectionDAG\DAGCombiner.cpp(2419) : warning C4244:
'initializing' : conversion from 'uint64_t' to 'unsigned int', possible loss
of data
..\..\lib\CodeGen\SelectionDAG\DAGCombiner.cpp(2448) : warning C4244:
'argument' : conversion from 'uint64_t' to 'unsigned int', possible loss of
data
..\..\lib\CodeGen\SelectionDAG\DAGCombiner.cpp(2544) : warning C4244:
'argument' : conversion from 'uint64_t' to 'unsigned int', possible loss of
data
..\..\lib\CodeGen\SelectionDAG\DAGCombiner.cpp(3131) : warning C4244:
'initializing' : conversion from 'uint64_t' to 'unsigned int', possible loss
of data
..\..\lib\CodeGen\SelectionDAG\DAGCombiner.cpp(3169) : warning C4244: '=' :
conversion from 'uint64_t' to 'unsigned int', possible loss of data
..\..\lib\CodeGen\SelectionDAG\DAGCombiner.cpp(3197) : warning C4244:
'initializing' : conversion from 'uint64_t' to 'unsigned int', possible loss
of data
..\..\lib\CodeGen\SelectionDAG\DAGCombiner.cpp(4355) : warning C4244:
'initializing' : conversion from 'uint64_t' to 'unsigned int', possible loss
of data
..\..\lib\CodeGen\SelectionDAG\DAGCombiner.cpp(4363) : warning C4244:
'initializing' : conversion from 'uint64_t' to 'unsigned int', possible loss
of data
..\..\lib\CodeGen\SelectionDAG\DAGCombiner.cpp(4562) : warning C4244: '=' :
conversion from 'uint64_t' to 'unsigned int', possible loss of data
..\..\lib\CodeGen\SelectionDAG\DAGCombiner.cpp(4665) : warning C4244:
'initializing' : conversion from 'uint64_t' to 'unsigned int', possible loss
of data
..\..\lib\CodeGen\SelectionDAG\DAGCombiner.cpp(4689) : warning C4244:
'initializing' : conversion from 'uint64_t' to 'unsigned int', possible loss
of data
..\..\lib\CodeGen\SelectionDAG\DAGCombiner.cpp(4715) : warning C4244:
'initializing' : conversion from 'uint64_t' to 'unsigned int', possible loss
of data
..\..\lib\CodeGen\SelectionDAG\DAGCombiner.cpp(4819) : warning C4244:
'initializing' : conversion from 'uint64_t' to 'unsigned int', possible loss
of data
..\..\lib\CodeGen\SelectionDAG\DAGCombiner.cpp(4896) : warning C4244:
'initializing' : conversion from 'uint64_t' to 'unsigned int', possible loss
of data
..\..\lib\CodeGen\SelectionDAG\DAGCombiner.cpp(4970) : warning C4244:
'initializing' : conversion from 'uint64_t' to 'unsigned int', possible loss
of data
..\..\lib\CodeGen\SelectionDAG\DAGCombiner.cpp(5480) : warning C4244:
'argument' : conversion from 'int64_t' to 'unsigned int', possible loss of
data
..\..\lib\CodeGen\SelectionDAG\DAGCombiner.cpp(5480) : warning C4244:
'argument' : conversion from 'int64_t' to 'unsigned int', possible loss of
data
LegalizeDAG.cpp
..\..\lib\CodeGen\SelectionDAG\LegalizeDAG.cpp(259) : warning C4244:
'initializing' : conversion from 'uint64_t' to 'unsigned int', possible loss
of data
..\..\lib\CodeGen\SelectionDAG\LegalizeDAG.cpp(617) : warning C4244: '=' :
conversion from 'uint64_t' to 'int', possible loss of data
..\..\lib\CodeGen\SelectionDAG\LegalizeDAG.cpp(686) : warning C4244:
'argument' : conversion from 'uint64_t' to 'unsigned int', possible loss of
data
..\..\lib\CodeGen\SelectionDAG\LegalizeDAG.cpp(694) : warning C4244:
'argument' : conversion from 'uint64_t' to 'unsigned int', possible loss of
data
..\..\lib\CodeGen\SelectionDAG\LegalizeDAG.cpp(1112) : warning C4244:
'initializing' : conversion from 'uint64_t' to 'unsigned int', possible loss
of data
..\..\lib\CodeGen\SelectionDAG\LegalizeDAG.cpp(1113) : warning C4244:
'initializing' : conversion from 'uint64_t' to 'unsigned int', possible loss
of data
..\..\lib\CodeGen\SelectionDAG\LegalizeDAG.cpp(1541) : warning C4244:
'initializing' : conversion from 'uint64_t' to 'unsigned int', possible loss
of data
..\..\lib\CodeGen\SelectionDAG\LegalizeDAG.cpp(1701) : warning C4244:
'initializing' : conversion from 'uint64_t' to 'unsigned int', possible loss
of data
..\..\lib\CodeGen\SelectionDAG\LegalizeDAG.cpp(1748) : warning C4244:
'initializing' : conversion from 'uint64_t' to 'unsigned int', possible loss
of data
..\..\lib\CodeGen\SelectionDAG\LegalizeDAG.cpp(2061) : warning C4244:
'argument' : conversion from 'uint64_t' to 'unsigned int', possible loss of
data
..\..\lib\CodeGen\SelectionDAG\LegalizeDAG.cpp(2089) : warning C4244:
'argument' : conversion from 'uint64_t' to 'unsigned int', possible loss of
data
..\..\lib\CodeGen\SelectionDAG\LegalizeDAG.cpp(2401) : warning C4244:
'argument' : conversion from 'uint64_t' to 'unsigned int', possible loss of
data
..\..\lib\CodeGen\SelectionDAG\LegalizeDAG.cpp(2512) : warning C4244: '=' :
conversion from 'uint64_t' to 'unsigned int', possible loss of data
..\..\lib\CodeGen\SelectionDAG\LegalizeDAG.cpp(2576) : warning C4244:
'argument' : conversion from 'uint64_t' to 'unsigned int', possible loss of
data
..\..\lib\CodeGen\SelectionDAG\LegalizeDAG.cpp(2592) : warning C4244:
'argument' : conversion from 'uint64_t' to 'unsigned int', possible loss of
data
..\..\lib\CodeGen\SelectionDAG\LegalizeDAG.cpp(5132) : warning C4244:
'initializing' : conversion from 'uint64_t' to 'unsigned int', possible loss
of data
..\..\lib\CodeGen\SelectionDAG\LegalizeDAG.cpp(5978) : warning C4244: '=' :
conversion from 'uint64_t' to 'unsigned int', possible loss of data
..\..\lib\CodeGen\SelectionDAG\LegalizeDAG.cpp(6786) : warning C4244:
'initializing' : conversion from 'uint64_t' to 'unsigned int', possible loss
of data
..\..\lib\CodeGen\SelectionDAG\LegalizeDAG.cpp(6817) : warning C4244:
'initializing' : conversion from 'uint64_t' to 'unsigned int', possible loss
of data
..\..\lib\CodeGen\SelectionDAG\LegalizeDAG.cpp(6835) : warning C4244:
'initializing' : conversion from 'uint64_t' to 'unsigned int', possible loss
of data
..\..\lib\CodeGen\SelectionDAG\LegalizeDAG.cpp(6967) : warning C4244: '=' :
conversion from 'uint64_t' to 'unsigned int', possible loss of data
LegalizeTypes.cpp
LegalizeTypesExpand.cpp
..\..\lib\CodeGen\SelectionDAG\LegalizeTypesExpand.cpp(404) : warning C4244:
'argument' : conversion from 'uint64_t' to 'unsigned int', possible loss of
data
..\..\lib\CodeGen\SelectionDAG\LegalizeTypesExpand.cpp(452) : warning C4244:
'argument' : conversion from 'uint64_t' to 'unsigned int', possible loss of
data
..\..\lib\CodeGen\SelectionDAG\LegalizeTypesExpand.cpp(478) : warning C4244:
'argument' : conversion from 'uint64_t' to 'unsigned int', possible loss of
data
..\..\lib\CodeGen\SelectionDAG\LegalizeTypesExpand.cpp(714) : warning C4244:
'argument' : conversion from 'uint64_t' to 'unsigned int', possible loss of
data
..\..\lib\CodeGen\SelectionDAG\LegalizeTypesExpand.cpp(1372) : warning
C4244: 'argument' : conversion from 'uint64_t' to 'unsigned int', possible
loss of data
..\..\lib\CodeGen\SelectionDAG\LegalizeTypesExpand.cpp(1395) : warning
C4244: 'argument' : conversion from 'uint64_t' to 'unsigned int', possible
loss of data
..\..\lib\CodeGen\SelectionDAG\LegalizeTypesExpand.cpp(1430) : warning
C4244: 'argument' : conversion from 'uint64_t' to 'unsigned int', possible
loss of data
LegalizeTypesFloatToInt.cpp
LegalizeTypesPromote.cpp
LegalizeTypesScalarize.cpp
LegalizeTypesSplit.cpp
..\..\lib\CodeGen\SelectionDAG\LegalizeTypesSplit.cpp(144) : warning C4244:
'=' : conversion from 'uint64_t' to 'unsigned int', possible loss of data
..\..\lib\CodeGen\SelectionDAG\LegalizeTypesSplit.cpp(166) : warning C4244:
'initializing' : conversion from 'uint64_t' to 'unsigned int', possible loss
of data
..\..\lib\CodeGen\SelectionDAG\LegalizeTypesSplit.cpp(192) : warning C4244:
'initializing' : conversion from 'uint64_t' to 'unsigned int', possible loss
of data
..\..\lib\CodeGen\SelectionDAG\LegalizeTypesSplit.cpp(205) : warning C4244:
'initializing' : conversion from 'uint64_t' to 'unsigned int', possible loss
of data
..\..\lib\CodeGen\SelectionDAG\LegalizeTypesSplit.cpp(421) : warning C4244:
'argument' : conversion from 'uint64_t' to 'unsigned int', possible loss of
data
ScheduleDAG.cpp
..\..\lib\CodeGen\SelectionDAG\ScheduleDAG.cpp(628) : warning C4244: '=' :
conversion from 'uint64_t' to 'unsigned int', possible loss of data
..\..\lib\CodeGen\SelectionDAG\ScheduleDAG.cpp(713) : warning C4244:
'initializing' : conversion from 'uint64_t' to 'unsigned int', possible loss
of data
..\..\lib\CodeGen\SelectionDAG\ScheduleDAG.cpp(747) : warning C4244:
'initializing' : conversion from 'uint64_t' to 'unsigned int', possible loss
of data
..\..\lib\CodeGen\SelectionDAG\ScheduleDAG.cpp(927) : warning C4244:
'initializing' : conversion from 'uint64_t' to 'unsigned int', possible loss
of data
ScheduleDAGList.cpp
ScheduleDAGRRList.cpp
SelectionDAG.cpp
..\..\lib\CodeGen\SelectionDAG\SelectionDAG.cpp(1303) : warning C4244:
'initializing' : conversion from 'uint64_t' to 'unsigned int', possible loss
of data
..\..\lib\CodeGen\SelectionDAG\SelectionDAG.cpp(1321) : warning C4244:
'initializing' : conversion from 'uint64_t' to 'unsigned int', possible loss
of data
..\..\lib\CodeGen\SelectionDAG\SelectionDAG.cpp(1339) : warning C4244:
'initializing' : conversion from 'uint64_t' to 'unsigned int', possible loss
of data
..\..\lib\CodeGen\SelectionDAG\SelectionDAG.cpp(1666) : warning C4244: '+='
: conversion from 'uint64_t' to 'unsigned int', possible loss of data
..\..\lib\CodeGen\SelectionDAG\SelectionDAG.cpp(1676) : warning C4244:
'return' : conversion from 'uint64_t' to 'unsigned int', possible loss of
data
..\..\lib\CodeGen\SelectionDAG\SelectionDAG.cpp(1708) : warning C4244:
'initializing' : conversion from 'uint64_t' to 'unsigned int', possible loss
of data
..\..\lib\CodeGen\SelectionDAG\SelectionDAG.cpp(1866) : warning C4244:
'argument' : conversion from 'uint64_t' to 'unsigned int', possible loss of
data
..\..\lib\CodeGen\SelectionDAG\SelectionDAG.cpp(2209) : warning C4244:
'argument' : conversion from 'uint64_t' to 'unsigned int', possible loss of
data
..\..\lib\CodeGen\SelectionDAG\SelectionDAG.cpp(2216) : warning C4244:
'argument' : conversion from 'uint64_t' to 'unsigned int', possible loss of
data
..\..\lib\CodeGen\SelectionDAG\SelectionDAG.cpp(2239) : warning C4244:
'argument' : conversion from 'uint64_t' to 'unsigned int', possible loss of
data
..\..\lib\CodeGen\SelectionDAG\SelectionDAG.cpp(2244) : warning C4244:
'initializing' : conversion from 'uint64_t' to 'unsigned int', possible loss
of data
..\..\lib\CodeGen\SelectionDAG\SelectionDAG.cpp(2574) : warning C4244: '=' :
conversion from 'uint64_t' to 'unsigned int', possible loss of data
..\..\lib\CodeGen\SelectionDAG\SelectionDAG.cpp(2695) : warning C4244:
'argument' : conversion from 'uint64_t' to 'unsigned int', possible loss of
data
..\..\lib\CodeGen\SelectionDAG\SelectionDAG.cpp(2714) : warning C4244:
'argument' : conversion from 'uint64_t' to 'unsigned int', possible loss of
data
..\..\lib\CodeGen\SelectionDAG\SelectionDAG.cpp(2716) : warning C4244:
'argument' : conversion from 'uint64_t' to 'unsigned int', possible loss of
data
..\..\lib\CodeGen\SelectionDAG\SelectionDAG.cpp(2717) : warning C4244:
'argument' : conversion from 'uint64_t' to 'int', possible loss of data
..\..\lib\CodeGen\SelectionDAG\SelectionDAG.cpp(2720) : warning C4244:
'argument' : conversion from 'uint64_t' to 'unsigned int', possible loss of
data
..\..\lib\CodeGen\SelectionDAG\SelectionDAG.cpp(2721) : warning C4244:
'argument' : conversion from 'uint64_t' to 'int', possible loss of data
..\..\lib\CodeGen\SelectionDAG\SelectionDAG.cpp(2723) : warning C4244:
'argument' : conversion from 'uint64_t' to 'unsigned int', possible loss of
data
..\..\lib\CodeGen\SelectionDAG\SelectionDAG.cpp(2724) : warning C4244:
'argument' : conversion from 'uint64_t' to 'int', possible loss of data
..\..\lib\CodeGen\SelectionDAG\SelectionDAG.cpp(2751) : warning C4244:
'argument' : conversion from 'uint64_t' to 'unsigned int', possible loss of
data
..\..\lib\CodeGen\SelectionDAG\SelectionDAG.cpp(2766) : warning C4244:
'argument' : conversion from 'uint64_t' to 'unsigned int', possible loss of
data
..\..\lib\CodeGen\SelectionDAG\SelectionDAG.cpp(2767) : warning C4244:
'argument' : conversion from 'uint64_t' to 'int', possible loss of data
..\..\lib\CodeGen\SelectionDAG\SelectionDAG.cpp(2781) : warning C4244:
'argument' : conversion from 'uint64_t' to 'unsigned int', possible loss of
data
..\..\lib\CodeGen\SelectionDAG\SelectionDAG.cpp(2782) : warning C4244:
'argument' : conversion from 'uint64_t' to 'int', possible loss of data
..\..\lib\CodeGen\SelectionDAG\SelectionDAG.cpp(2814) : warning C4244:
'argument' : conversion from 'uint64_t' to 'unsigned int', possible loss of
data
..\..\lib\CodeGen\SelectionDAG\SelectionDAG.cpp(2815) : warning C4244:
'argument' : conversion from 'uint64_t' to 'int', possible loss of data
..\..\lib\CodeGen\SelectionDAG\SelectionDAG.cpp(3311) : warning C4060:
switch statement contains no 'case' or 'default' labels
..\..\lib\CodeGen\SelectionDAG\SelectionDAG.cpp(4445) : warning C4244:
'initializing' : conversion from 'uint64_t' to 'unsigned int', possible loss
of data
..\..\lib\CodeGen\SelectionDAG\SelectionDAG.cpp(4450) : warning C4244:
'initializing' : conversion from 'uint64_t' to 'unsigned int', possible loss
of data

The missing delete operator:
f:\Prog\llvm\include\llvm/Instructions.h(2012) : warning C4291: 'void
*llvm::User::operator new(size_t,unsigned int)' : no matching operator
delete found; memory will not be freed if initialization throws an exception
        f:\Prog\llvm\include\llvm/User.h(230) : see declaration of
'llvm::User::operator new'
f:\Prog\llvm\include\llvm/Instructions.h(2015) : warning C4291: 'void
*llvm::User::operator new(size_t,unsigned int)' : no matching operator
delete found; memory will not be freed if initialization throws an exception
        f:\Prog\llvm\include\llvm/User.h(230) : see declaration of
'llvm::User::operator new'
f:\Prog\llvm\include\llvm/Instructions.h(2019) : warning C4291: 'void
*llvm::User::operator new(size_t,unsigned int)' : no matching operator
delete found; memory will not be freed if initialization throws an exception
        f:\Prog\llvm\include\llvm/User.h(230) : see declaration of
'llvm::User::operator new'

and the project files lack some preprocessor definitions: there is
_SCL_SECURE_NO_WARNINGS, but it only work with SP1, we need
_SCL_SECURE_NO_DEPRECATE for vanilla VS2005