diff mbox

[12/13] llvm: remove unneeded arg 'fn'

Message ID 20170305112047.3411-13-luc.vanoostenryck@gmail.com (mailing list archive)
State Superseded, archived
Headers show

Commit Message

Luc Van Oostenryck March 5, 2017, 11:20 a.m. UTC
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
---
 sparse-llvm.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff mbox

Patch

diff --git a/sparse-llvm.c b/sparse-llvm.c
index 35562e570..7c7b70027 100644
--- a/sparse-llvm.c
+++ b/sparse-llvm.c
@@ -303,7 +303,7 @@  static void pseudo_name(pseudo_t pseudo, char *buf)
 	}
 }
 
-static LLVMValueRef val_to_value(struct function *fn, unsigned long long val, struct symbol *ctype)
+static LLVMValueRef val_to_value(unsigned long long val, struct symbol *ctype)
 {
 	LLVMTypeRef dtype;
 	LLVMTypeRef itype;
@@ -384,7 +384,7 @@  static LLVMValueRef pseudo_to_value(struct function *fn, struct instruction *ins
 		break;
 	}
 	case PSEUDO_VAL:
-		result = val_to_value(fn, pseudo->value, insn->type);
+		result = val_to_value(pseudo->value, insn->type);
 		break;
 	case PSEUDO_ARG: {
 		result = LLVMGetParam(fn->fn, pseudo->nr - 1);
@@ -749,7 +749,7 @@  static void output_op_call(struct function *fn, struct instruction *insn)
 			/* Value pseudos do not have type information. */
 			/* Use the function prototype to get the type. */
 			struct symbol *ctype = get_nth1_arg(insn->func->sym, i + 1);
-			value = val_to_value(fn, arg->value, ctype);
+			value = val_to_value(arg->value, ctype);
 		} else {
 			value = pseudo_to_value(fn, insn, arg);
 		}