mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-23 22:35:19 +00:00
cmplog: Fix compilation for LLVM 12.0.0 (getFixedValue was not available here)
This commit is contained in:
@ -339,7 +339,7 @@ bool CmpLogInstructions::hookInstrs(Module &M) {
|
||||
}
|
||||
|
||||
#if LLVM_MAJOR > 11
|
||||
vector_cnt = tt->getElementCount().getFixedValue();
|
||||
vector_cnt = tt->getElementCount().getKnownMinValue();
|
||||
ty0 = tt->getElementType();
|
||||
#endif
|
||||
|
||||
@ -380,7 +380,7 @@ bool CmpLogInstructions::hookInstrs(Module &M) {
|
||||
|
||||
}
|
||||
|
||||
vector_cnt = tt->getElementCount().getFixedValue();
|
||||
vector_cnt = tt->getElementCount().getKnownMinValue();
|
||||
ty1 = ty0 = tt->getElementType();
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user