Adjust to the new BasicBlock ctor, which requires a function parameter