[llvm-commits] [llvm] r148064 - in /llvm/trunk: docs/LangRef.html lib/CodeGen/AsmPrinter/AsmPrinter.cpp lib/Target/X86/X86FrameLowering.cpp

Bill Wendling isanbard at gmail.com
Thu Jan 12 16:45:43 PST 2012


Fixed. Thanks. :-(

-bw

On Jan 12, 2012, at 4:43 PM, Jakob Stoklund Olesen wrote:

> 
> On Jan 12, 2012, at 3:05 PM, Bill Wendling wrote:
> 
>> -  for (int I = 0; I != 6; ++I) {
>> +  for (int I = CU_NUM_SAVED_REGS, Idx = 0; I != -1; --I) {
>>    unsigned Reg = SavedRegs[I];
> 
> You are reading off the end of SavedRegs here, the loop has CU_NUM_SAVED_REGS+1 iterations.
> 
> /jakob
> 




More information about the llvm-commits mailing list