From 929fe1431557b0bc58897334530e384c1fa8b5f3 Mon Sep 17 00:00:00 2001 From: Brenden Blanco Date: Sun, 1 May 2016 21:26:04 -0700 Subject: [PATCH] Avoid a warning in bpf_module.cc The variable inside the if statement was unused, unliked the blocks above and below it. Use the isa<> check instead. --- src/cc/bpf_module.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cc/bpf_module.cc b/src/cc/bpf_module.cc index cc5aae1..72dad26 100644 --- a/src/cc/bpf_module.cc +++ b/src/cc/bpf_module.cc @@ -156,7 +156,7 @@ static void parse_type(IRBuilder<> &B, vector *args, string *fmt, *fmt += " "; } *fmt += "]"; - } else if (PointerType *pt = dyn_cast(type)) { + } else if (isa(type)) { *fmt += "0xl"; if (is_writer) *fmt += "x"; -- 2.7.4