diff options
author | hexcoder- <heiko@hexco.de> | 2021-01-04 22:23:04 +0100 |
---|---|---|
committer | hexcoder- <heiko@hexco.de> | 2021-01-04 22:23:04 +0100 |
commit | 7f4b3a460a0b4f83e9039b57c033f6f43be08550 (patch) | |
tree | 103d54bd62478660e3639525f72ffd4b2d1a2d13 /instrumentation/split-compares-pass.so.cc | |
parent | 251e72f13654b5259f57075c7dffcc3a43372449 (diff) | |
download | afl++-7f4b3a460a0b4f83e9039b57c033f6f43be08550.tar.gz |
more code cleanup (instrumentation)
Diffstat (limited to 'instrumentation/split-compares-pass.so.cc')
-rw-r--r-- | instrumentation/split-compares-pass.so.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/instrumentation/split-compares-pass.so.cc b/instrumentation/split-compares-pass.so.cc index 33a87719..53e93f7a 100644 --- a/instrumentation/split-compares-pass.so.cc +++ b/instrumentation/split-compares-pass.so.cc @@ -53,7 +53,7 @@ class SplitComparesTransform : public ModulePass { public: static char ID; - SplitComparesTransform() : ModulePass(ID) { + SplitComparesTransform() : ModulePass(ID), enableFPSplit(0) { initInstrumentList(); @@ -900,7 +900,6 @@ size_t SplitComparesTransform::splitFPCompares(Module &M) { /* compare the fractions of the operands */ Instruction *icmp_fraction_result; - Instruction *icmp_fraction_result2; BasicBlock * middle2_bb = middle_bb; PHINode * PN2 = nullptr; switch (FcmpInst->getPredicate()) { @@ -927,6 +926,8 @@ size_t SplitComparesTransform::splitFPCompares(Module &M) { case CmpInst::FCMP_OLT: case CmpInst::FCMP_ULT: { + Instruction *icmp_fraction_result2; + middle2_bb = middle_bb->splitBasicBlock( BasicBlock::iterator(middle_bb->getTerminator())); |