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

Jakob Stoklund Olesen stoklund at 2pi.dk
Thu Jan 12 16:43:25 PST 2012


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