diff options
author | vanhauser-thc <vh@thc.org> | 2021-10-18 20:53:54 +0200 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2021-10-18 20:53:54 +0200 |
commit | bb8a4d71da8f2b748a78ccc4416df6bffb393d80 (patch) | |
tree | 157a08bdf31e159bd83d137cc157fb204cc34117 /instrumentation/split-compares-pass.so.cc | |
parent | fd43daee6a2146e95059b7ea670c6bf24b3704ed (diff) | |
download | afl++-bb8a4d71da8f2b748a78ccc4416df6bffb393d80.tar.gz |
format and remove warning
Diffstat (limited to 'instrumentation/split-compares-pass.so.cc')
-rw-r--r-- | instrumentation/split-compares-pass.so.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/instrumentation/split-compares-pass.so.cc b/instrumentation/split-compares-pass.so.cc index 13f45b69..e63be98c 100644 --- a/instrumentation/split-compares-pass.so.cc +++ b/instrumentation/split-compares-pass.so.cc @@ -578,16 +578,16 @@ bool SplitComparesTransform::splitCompare(CmpInst *cmp_inst, Module &M, /* dependent on the cmp of the high parts go to the end or go on with * the comparison */ - auto term = bb->getTerminator(); - BranchInst *br = nullptr; + auto term = bb->getTerminator(); + if (pred == CmpInst::ICMP_EQ) { - br = BranchInst::Create(cmp_low_bb, end_bb, icmp_high, bb); + BranchInst::Create(cmp_low_bb, end_bb, icmp_high, bb); } else { - /* CmpInst::ICMP_NE */ - br = BranchInst::Create(end_bb, cmp_low_bb, icmp_high, bb); + // CmpInst::ICMP_NE + BranchInst::Create(end_bb, cmp_low_bb, icmp_high, bb); } |