diff options
author | van Hauser <vh@thc.org> | 2021-01-04 23:13:56 +0100 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2021-01-04 23:13:56 +0100 |
commit | 6c095b3937565e0e3c645cab706269e8c764701e (patch) | |
tree | 9601020625edc4c311e4fa1656651cdb74f767a5 /instrumentation/cmplog-instructions-pass.cc | |
parent | d367b033a206187b9342c8003512512f62ff99b0 (diff) | |
download | afl++-6c095b3937565e0e3c645cab706269e8c764701e.tar.gz |
code format
Diffstat (limited to 'instrumentation/cmplog-instructions-pass.cc')
-rw-r--r-- | instrumentation/cmplog-instructions-pass.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/instrumentation/cmplog-instructions-pass.cc b/instrumentation/cmplog-instructions-pass.cc index 154bec2b..3499ccf0 100644 --- a/instrumentation/cmplog-instructions-pass.cc +++ b/instrumentation/cmplog-instructions-pass.cc @@ -234,9 +234,9 @@ bool CmpLogInstructions::hookInstrs(Module &M) { auto ty0 = op0->getType(); if (ty0->isHalfTy() #if LLVM_VERSION_MAJOR >= 11 - || ty0->isBFloatTy() + || ty0->isBFloatTy() #endif - ) + ) max_size = 16; else if (ty0->isFloatTy()) max_size = 32; @@ -253,15 +253,15 @@ bool CmpLogInstructions::hookInstrs(Module &M) { if (intTyOp0 && intTyOp1) { max_size = intTyOp0->getBitWidth() > intTyOp1->getBitWidth() - ? intTyOp0->getBitWidth() - : intTyOp1->getBitWidth(); + ? intTyOp0->getBitWidth() + : intTyOp1->getBitWidth(); args.push_back(V0); args.push_back(V1); - + } else { - + max_size = 0; - + } } |