diff options
| author | hexcoder- <heiko@hexco.de> | 2021-11-19 19:44:14 +0100 |
|---|---|---|
| committer | hexcoder- <heiko@hexco.de> | 2021-11-19 19:44:14 +0100 |
| commit | 5c1b2412a58103db15350ba1511bde0d071822a2 (patch) | |
| tree | 96eb47cf0c468b8285515eab11c6b5b4802f6b5e | |
| parent | 7777045c09c404b1274c930788317525fedb43ad (diff) | |
| download | afl++-5c1b2412a58103db15350ba1511bde0d071822a2.tar.gz | |
cmplog: Fix compilation for LLVM 12.0.0 (getFixedValue was not available here)
| -rw-r--r-- | instrumentation/cmplog-instructions-pass.cc | 4 |
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 |
