Builder.branch will check if the basicblock has terminator when running in debug mode.
Fix Module.link_in so it reports error and destory the other module when preserve=False