[llvm-bugs] [Bug 42129] llvm::MachineInstr *llvm::MachineRegisterInfo::getVRegDef(unsigned int) const: Assertion `(I.atEnd() || std::next(I) == def_instr_end()) && "getVRegDef assumes a single definition or no definition"' failed.

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jun 5 16:48:20 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=42129

Amara Emerson <aemerson at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |aemerson at apple.com
         Resolution|---                         |FIXED

--- Comment #1 from Amara Emerson <aemerson at apple.com> ---
Should be fixed in r362666. We were trying to look through copies but then
called getVRegDef() on a physreg operand. This would normally be benign as it
returns nullptr if so, but with assertions enabled it if there are multiple
defs of the physreg (in this case due to a call instruction that imp-defs w0)
it will crash.

-- 
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/20190605/228ab210/attachment.html>


More information about the llvm-bugs mailing list