Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx> --- sparse-llvm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sparse-llvm.c b/sparse-llvm.c index 831a56207..70a495267 100644 --- a/sparse-llvm.c +++ b/sparse-llvm.c @@ -1071,8 +1071,6 @@ static void output_fn(LLVMModuleRef module, struct entrypoint *ep) function.builder = LLVMCreateBuilder(); - static int nr_bb; - /* give a name to each argument */ for (int i = 0; i < nr_args; i++) { char name[MAX_PSEUDO_NAME]; @@ -1085,6 +1083,7 @@ static void output_fn(LLVMModuleRef module, struct entrypoint *ep) /* create the BBs */ FOR_EACH_PTR(ep->bbs, bb) { + static int nr_bb; LLVMBasicBlockRef bbr; char bbname[32]; struct instruction *insn; -- 2.11.1 -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html