OvermindDL1
2009-May-12 21:31 UTC
[LLVMdev] Integer casting warning, and another set of warnings
I have a warning when building with MSVC2k5, a benign warning, but I am trying to get rid of them. ..\..\..\..\trunk\lib\Transforms\Utils\AddrModeMatcher.cpp(208) : warning C4334: '<<' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) The line of code is: Scale = 1 << Scale; Where Scale is an int64_t, however, 1 is an int32_t (since it is a non-suffixed constant). Regarding the email I *just* send about the INT64_C macros and so forth, the 1 should actually be INT64_C(1) and that should fix it. Also, getting another set of warning, but the file looks fine, so do not know... R:\SDKs\llvm\trunk_VC8_building\lib\Target\X86\X86GenDAGISel.inc(54113) : warning C4065: switch statement contains 'default' but no 'case' labels R:\SDKs\llvm\trunk_VC8_building\lib\Target\X86\X86GenDAGISel.inc(54121) : warning C4065: switch statement contains 'default' but no 'case' labels R:\SDKs\llvm\trunk_VC8_building\lib\Target\X86\X86GenDAGISel.inc(54167) : warning C4065: switch statement contains 'default' but no 'case' labels R:\SDKs\llvm\trunk_VC8_building\lib\Target\X86\X86GenDAGISel.inc(54175) : warning C4065: switch statement contains 'default' but no 'case' labels R:\SDKs\llvm\trunk_VC8_building\lib\Target\X86\X86GenDAGISel.inc(54211) : warning C4065: switch statement contains 'default' but no 'case' labels R:\SDKs\llvm\trunk_VC8_building\lib\Target\X86\X86GenDAGISel.inc(54430) : warning C4065: switch statement contains 'default' but no 'case' labels R:\SDKs\llvm\trunk_VC8_building\lib\Target\X86\X86GenDAGISel.inc(54515) : warning C4065: switch statement contains 'default' but no 'case' labels R:\SDKs\llvm\trunk_VC8_building\lib\Target\X86\X86GenDAGISel.inc(54565) : warning C4065: switch statement contains 'default' but no 'case' labels R:\SDKs\llvm\trunk_VC8_building\lib\Target\X86\X86GenDAGISel.inc(54706) : warning C4065: switch statement contains 'default' but no 'case' labels R:\SDKs\llvm\trunk_VC8_building\lib\Target\X86\X86GenDAGISel.inc(54767) : warning C4065: switch statement contains 'default' but no 'case' labels R:\SDKs\llvm\trunk_VC8_building\lib\Target\X86\X86GenDAGISel.inc(54860) : warning C4065: switch statement contains 'default' but no 'case' labels R:\SDKs\llvm\trunk_VC8_building\lib\Target\X86\X86GenDAGISel.inc(54894) : warning C4065: switch statement contains 'default' but no 'case' labels R:\SDKs\llvm\trunk_VC8_building\lib\Target\X86\X86GenDAGISel.inc(54902) : warning C4065: switch statement contains 'default' but no 'case' labels R:\SDKs\llvm\trunk_VC8_building\lib\Target\X86\X86GenDAGISel.inc(54937) : warning C4065: switch statement contains 'default' but no 'case' labels R:\SDKs\llvm\trunk_VC8_building\lib\Target\X86\X86GenDAGISel.inc(54963) : warning C4065: switch statement contains 'default' but no 'case' labels R:\SDKs\llvm\trunk_VC8_building\lib\Target\X86\X86GenDAGISel.inc(54986) : warning C4065: switch statement contains 'default' but no 'case' labels R:\SDKs\llvm\trunk_VC8_building\lib\Target\X86\X86GenDAGISel.inc(55070) : warning C4065: switch statement contains 'default' but no 'case' labels R:\SDKs\llvm\trunk_VC8_building\lib\Target\X86\X86GenDAGISel.inc(55089) : warning C4065: switch statement contains 'default' but no 'case' labels R:\SDKs\llvm\trunk_VC8_building\lib\Target\X86\X86GenDAGISel.inc(55097) : warning C4065: switch statement contains 'default' but no 'case' labels R:\SDKs\llvm\trunk_VC8_building\lib\Target\X86\X86GenDAGISel.inc(55105) : warning C4065: switch statement contains 'default' but no 'case' labels R:\SDKs\llvm\trunk_VC8_building\lib\Target\X86\X86GenDAGISel.inc(55144) : warning C4065: switch statement contains 'default' but no 'case' labels R:\SDKs\llvm\trunk_VC8_building\lib\Target\X86\X86GenDAGISel.inc(55187) : warning C4065: switch statement contains 'default' but no 'case' labels R:\SDKs\llvm\trunk_VC8_building\lib\Target\X86\X86GenDAGISel.inc(55195) : warning C4065: switch statement contains 'default' but no 'case' labels R:\SDKs\llvm\trunk_VC8_building\lib\Target\X86\X86GenDAGISel.inc(55331) : warning C4065: switch statement contains 'default' but no 'case' labels R:\SDKs\llvm\trunk_VC8_building\lib\Target\X86\X86GenDAGISel.inc(55339) : warning C4065: switch statement contains 'default' but no 'case' labels R:\SDKs\llvm\trunk_VC8_building\lib\Target\X86\X86GenDAGISel.inc(55347) : warning C4065: switch statement contains 'default' but no 'case' labels R:\SDKs\llvm\trunk_VC8_building\lib\Target\X86\X86GenDAGISel.inc(55355) : warning C4065: switch statement contains 'default' but no 'case' labels R:\SDKs\llvm\trunk_VC8_building\lib\Target\X86\X86GenDAGISel.inc(55426) : warning C4065: switch statement contains 'default' but no 'case' labels R:\SDKs\llvm\trunk_VC8_building\lib\Target\X86\X86GenDAGISel.inc(55434) : warning C4065: switch statement contains 'default' but no 'case' labels R:\SDKs\llvm\trunk_VC8_building\lib\Target\X86\X86GenDAGISel.inc(55442) : warning C4065: switch statement contains 'default' but no 'case' labels R:\SDKs\llvm\trunk_VC8_building\lib\Target\X86\X86GenDAGISel.inc(55450) : warning C4065: switch statement contains 'default' but no 'case' labels