Segmentation Fault from CUDA clang when running custom LLVM IR pass

Dear LLVM Community,
I ran into a segmentation fault when running custom LLVM IR pass on CUDA code.
The detailed descriptoin of the error can be found here.

Regards,
Pradeep