Changed buildBasicBlock to addToBaiscBlock