[LLVMdev] reg2mem breaks module

Shaltiel, Alon ashaltiel at nds.com
Mon Dec 31 01:47:01 PST 2012


Hello,



I'm trying to apply the reg2mem pass on my bc file, but it somehow adds an instruction before a landingpad instruction and so I get a broken module error:



                The unwind destination does not have a landingpad instruction!

                  %41 = invoke %class.x* @_ZN10xC2Ev(%class.x* %.reload19)

                          to label %.noexc unwind label %88

                The unwind destination does not have a landingpad instruction!



I tried it on LLVM-3.1 and LLVM-3.2, and the same issue occurs on both.

Is there a known bug with reg2mem?

Maybe I'm doing something wrong?



Thanks!

Alon

________________________________

This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the postmaster at nds.com and delete it from your system as well as any copies. The content of e-mails as well as traffic data may be monitored by NDS for employment and security purposes.
To protect the environment please do not print this e-mail unless necessary.

An NDS Group Limited company. www.nds.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20121231/d21448fe/attachment.html>


More information about the llvm-dev mailing list