diff options
| author | van Hauser <vh@thc.org> | 2021-01-04 17:53:47 +0100 |
|---|---|---|
| committer | van Hauser <vh@thc.org> | 2021-01-04 17:53:47 +0100 |
| commit | 1842c8390f828ee4e453cf43fc8e7b82e287d22f (patch) | |
| tree | 8454fb623147149f56581722b12dc227d992e7a3 | |
| parent | 9c15f53a47243e32860570d0b9fb64be3e12b0c5 (diff) | |
| download | afl++-1842c8390f828ee4e453cf43fc8e7b82e287d22f.tar.gz | |
fix for llvm < 11
| -rw-r--r-- | instrumentation/cmplog-instructions-pass.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/instrumentation/cmplog-instructions-pass.cc b/instrumentation/cmplog-instructions-pass.cc index 7ab38cf4..841ba0bd 100644 --- a/instrumentation/cmplog-instructions-pass.cc +++ b/instrumentation/cmplog-instructions-pass.cc @@ -232,7 +232,11 @@ bool CmpLogInstructions::hookInstrs(Module &M) { if (selectcmpInst->getOpcode() == Instruction::FCmp) { auto ty0 = op0->getType(); - if (ty0->isHalfTy() || ty0->isBFloatTy()) + if (ty0->isHalfTy() +#if LLVM_VERSION_MAJOR >= 11 + || ty0->isBFloatTy() +#endif + ) max_size = 16; else if (ty0->isFloatTy()) max_size = 32; |
