[llvm-bugs] [Bug 30324] llc segfaults when running PEI in isolation

via llvm-bugs llvm-bugs at lists.llvm.org
Wed May 24 13:27:48 PDT 2017


Francis Visoiu Mistrih <thegameg1 at yahoo.com> changed:

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

--- Comment #8 from Francis Visoiu Mistrih <thegameg1 at yahoo.com> ---
(In reply to Francis Visoiu Mistrih from comment #7)
> I am trying to test the AsmPrinter from a MIR test, but this still fails
> when I use llc -start-before prologepilog. The workaround to run PEI only is
> to -run-pass stack-protector -run-pass prologepilog, but there is no way to
> call the AsmPrinter through -run-pass, so -start-before is actually needed
> in this case.
> As Quentin pointed out, I couldn't find a way to pass the TargetMachine to
> the pass manager. (r302096 lib/IR/LegacyPassManager.cpp:648 calls the
> default ctor)
> My workaround for this is to run llc -start-before=stack-protector
> -disable-machine-dce.

Fixed in r303360.

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/20170524/8c4921a1/attachment.html>

More information about the llvm-bugs mailing list