[llvm-commits] [llvm] r100581 - in /llvm/trunk/lib: CodeGen/AsmPrinter/DwarfDebug.cpp CodeGen/VirtRegRewriter.cpp Target/SystemZ/SystemZRegisterInfo.cpp Target/X86/SSEDomainFix.cpp Target/X86/X86FastISel.cpp

Duncan Sands baldrick at free.fr
Tue Apr 6 16:50:12 PDT 2010


Hi John,

> -          unsigned NumBytes = FltVal.getBitWidth() / 8; // 8 bits per byte.
> +          int NumBytes = FltVal.getBitWidth() / 8; // 8 bits per byte.

it doesn't make any sense for the bit width to be negative, so maybe
getBitWidth() should be changed to return an unsigned value instead.

Ciao,

Duncan.



More information about the llvm-commits mailing list