Skip to content

Commit

Permalink
Avoid a warning in bpf_module.cc
Browse files Browse the repository at this point in the history
The variable inside the if statement was unused, unliked the blocks
above and below it. Use the isa<> check instead.
  • Loading branch information
Brenden Blanco committed May 2, 2016
1 parent 420cda2 commit 929fe14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cc/bpf_module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ static void parse_type(IRBuilder<> &B, vector<Value *> *args, string *fmt,
*fmt += " ";
}
*fmt += "]";
} else if (PointerType *pt = dyn_cast<PointerType>(type)) {
} else if (isa<PointerType>(type)) {
*fmt += "0xl";
if (is_writer)
*fmt += "x";
Expand Down

0 comments on commit 929fe14

Please sign in to comment.