about summary refs log tree commit diff
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2021-12-04 17:27:25 +0100
committerhexcoder- <heiko@hexco.de>2021-12-04 17:27:25 +0100
commit29e4c315d9943d393d425b1c8e0018bd03e77251 (patch)
tree272d5eb263a5868391e805a1b68930440619e161
parentfc094dee13060fd84e89764a9526c11a55072e4d (diff)
downloadafl++-29e4c315d9943d393d425b1c8e0018bd03e77251.tar.gz
Fix compilation for LLVM 12.0.0, use older method getKnownMinValue()
-rw-r--r--instrumentation/SanitizerCoveragePCGUARD.so.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/instrumentation/SanitizerCoveragePCGUARD.so.cc b/instrumentation/SanitizerCoveragePCGUARD.so.cc
index 92450781..d5746cc7 100644
--- a/instrumentation/SanitizerCoveragePCGUARD.so.cc
+++ b/instrumentation/SanitizerCoveragePCGUARD.so.cc
@@ -889,7 +889,7 @@ bool ModuleSanitizerCoverage::InjectCoverage(Function &             F,
           if (tt) {
 
             cnt_sel++;
-            cnt_sel_inc += tt->getElementCount().getFixedValue();
+            cnt_sel_inc += tt->getElementCount().getKnownMinValue();
 
           }