about summary refs log tree commit diff
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2021-11-19 19:44:14 +0100
committerhexcoder- <heiko@hexco.de>2021-11-19 19:44:14 +0100
commit5c1b2412a58103db15350ba1511bde0d071822a2 (patch)
tree96eb47cf0c468b8285515eab11c6b5b4802f6b5e
parent7777045c09c404b1274c930788317525fedb43ad (diff)
downloadafl++-5c1b2412a58103db15350ba1511bde0d071822a2.tar.gz
cmplog: Fix compilation for LLVM 12.0.0 (getFixedValue was not available here)
-rw-r--r--instrumentation/cmplog-instructions-pass.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/instrumentation/cmplog-instructions-pass.cc b/instrumentation/cmplog-instructions-pass.cc
index 80af05f0..a7b7aac8 100644
--- a/instrumentation/cmplog-instructions-pass.cc
+++ b/instrumentation/cmplog-instructions-pass.cc
@@ -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