[llvm-dev] Linking with debug version LLVM library crashes, linking with release version LLVM library fine

Welson Sun via llvm-dev llvm-dev at lists.llvm.org
Fri Jun 23 16:10:33 PDT 2017


I am playing with this simple example

I added a LoopInfo pass dependency:

  // Create a pass manager and fill it with the passes we want to run.
  legacy::PassManager PM;
  PM.add(new LoopInfoWrapperPass());
  PM.add(new GVNames());

When linking against the release version of LLVM library, it compiles,
links, and runs fine.

But when linking against the debug version of LLVM library, it crashes on
PM.add(new LoopInfoWrapperPass());

I am pretty sure I might be doing something stupid, but cannot see the

- Welson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170623/0da2c3e4/attachment.html>

More information about the llvm-dev mailing list