seg fault in AddReachableCodeToWorklist


I am running into this segmentation fault while running a simple function pass on some C benchmarks

Program received signal SIGSEGV, Segmentation fault.
0x00000000005c5c00 in AddReachableCodeToWorklist(llvm::BasicBlock*, llvm::SmallPtrSet<llvm::BasicBlock*, 64u>&, llvm::InstCombiner&, llvm::TargetData const*) ()

What can be the possible reasons of the segmentation fault here? I am trying to figure it out for many days now. I would appreciate any help.


Hi Naznin, do you build LLVM with assertions enabled? Does your IR pass the

Best wishes, Duncan.