Changed code because parseIRFile now returns a unique_ptr