no need to pass a vector of BasicBlock to checkIrreducibleCFG

We only used the header of the vector, so replaced the vector with
"BasicBlock *"