http://llvm.org/bugs/show_bug.cgi?id=2376

           Summary: std::vector subscript out of range error in LocalSpiller
                    when rewriting function
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llc
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
                CC: [email protected]


Created an attachment (id=1672)
 --> (http://llvm.org/bugs/attachment.cgi?id=1672)
Bugpoint reduced testcase 

Hi,

Compiling the attached testcase with llc on Windows Vista - SVN revision 51603,
built using VS 2005 - triggers a debug assertion from inside the MSVC++
standard library when attempting to access an element of a vector that doesn't
exist.

Running llc through the debugger, the code triggering this error is in
VirtRegMap.cpp:InvalidateKills

[snip]

if (KillOps[Reg] == &MO) {
  RegKills.reset(Reg);
  KillOps[Reg] = NULL;
}

[/snip]

Here, the value of "Reg" is 1061, but the size of KillOps is only 112.


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to