[llvm-commits] [llvm] r138864 - in /llvm/trunk: lib/CodeGen/AsmPrinter/AsmPrinter.cpp test/CodeGen/X86/2011-08-29-BlockConstant.ll

David A. Greene greened at obbligato.org
Wed Aug 31 14:07:56 PDT 2011


Chris Lattner <clattner at apple.com> writes:

>> +    if (Value != -1) {
>> +      unsigned Bytes = AP.TM.getTargetData()->getTypeAllocSize(CA->getType());
>> +      AP.OutStreamer.EmitFill(Bytes, Value, AddrSpace);
>> +    }
>
> "Bytes" should be a uint64_t.  Sizes should be 64-bit, even if "index counts" are not.

Good catch.  Will fix.

                             -Dave



More information about the llvm-commits mailing list