From 29e4c315d9943d393d425b1c8e0018bd03e77251 Mon Sep 17 00:00:00 2001 From: hexcoder- Date: Sat, 4 Dec 2021 17:27:25 +0100 Subject: Fix compilation for LLVM 12.0.0, use older method getKnownMinValue() --- instrumentation/SanitizerCoveragePCGUARD.so.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'instrumentation/SanitizerCoveragePCGUARD.so.cc') 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(); } -- cgit 1.4.1