We are upgrading an LLVM 4.0-based opt module to LLVM 5.0. After the upgrade our module works when built with an LLVM Debug build, but
with an LLVM Release build we are encountering the following error.
This happens after our passes have successfully run. I believe this has to do with the way our passes are registered. Would greatly appreciate some pointers, as to where to look.
Program received signal SIGSEGV, Segmentation fault.
#0 0x00007ffff6926c20 in ?? ()
#1 0x00005555561c333b in llvm::object_deleter<llvm::SmallVector<std::pair<llvm::PassManagerBuilder::ExtensionPointTy, std::function<void (llvm::PassManagerBuilder const&, llvm::legacy::PassManagerBase&)> >, 8u> >::call(void*) ()
#2 0x000055555658492d in llvm::ManagedStaticBase::destroy() const ()
#3 0x00005555565849e5 in llvm::llvm_shutdown() ()
#4 0x000055555589e0a2 in main ()