How to create a new Basic block

I am using this function :

SplitEdge(FromBlock, ToBlock, pass); But .ll file is not getting updated. Please help.