mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-11 09:41:35 +00:00
fix for llvm < 11
This commit is contained in:
parent
9c15f53a47
commit
1842c8390f
@ -232,7 +232,11 @@ bool CmpLogInstructions::hookInstrs(Module &M) {
|
|||||||
if (selectcmpInst->getOpcode() == Instruction::FCmp) {
|
if (selectcmpInst->getOpcode() == Instruction::FCmp) {
|
||||||
|
|
||||||
auto ty0 = op0->getType();
|
auto ty0 = op0->getType();
|
||||||
if (ty0->isHalfTy() || ty0->isBFloatTy())
|
if (ty0->isHalfTy()
|
||||||
|
#if LLVM_VERSION_MAJOR >= 11
|
||||||
|
|| ty0->isBFloatTy()
|
||||||
|
#endif
|
||||||
|
)
|
||||||
max_size = 16;
|
max_size = 16;
|
||||||
else if (ty0->isFloatTy())
|
else if (ty0->isFloatTy())
|
||||||
max_size = 32;
|
max_size = 32;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user