[LLVMbugs] [Bug 15787] Assert in llvm::MachineRegisterInfo::clearVirtRegs: Vreg use list non-empty still

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Apr 19 15:55:01 PDT 2013


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

Hal Finkel <hfinkel at anl.gov> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #8 from Hal Finkel <hfinkel at anl.gov> ---
(In reply to comment #7)
> (In reply to comment #6)
> > I suspect the problems is here:
> > 
> >   SmallVector<std::pair<MachineOperand*, PPC::Predicate>, 4>
> >       OperandsToUpdate;
> >   SmallVector<std::pair<MachineOperand*, MachineOperand*>, 4>
> >       OperandsToSwap;
> > 
> > When you add operands to an MI, all operand pointers and references are
> > invalidated, just like a std::vector.
> 
> Okay, thanks for looking at this! The OperandsToSwap array is going to go
> away shortly; so I'll retest with the new version.

Yep; this was the problem. Thanks again!

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130419/0e291e68/attachment.html>


More information about the llvm-bugs mailing list