[LLVMdev] reg2mem breaks module

Duncan Sands baldrick at free.fr
Mon Dec 31 03:31:04 PST 2012


Hi Alon, does your module pass the verifier?
   opt -disable-output -verify pass.bc
If it does, please open a bug report.

Ciao, Duncan.

On 31/12/12 10:47, Shaltiel, Alon wrote:
> 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
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>




More information about the llvm-dev mailing list