diff options
author | van Hauser <vh@thc.org> | 2021-02-01 22:59:41 +0100 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2021-02-01 22:59:41 +0100 |
commit | 90fdafa1ad167f43fb42cdec2335fa7416cc633c (patch) | |
tree | 035ffc1c2403bd1c72c5e02528384d1b30cb6fcb /instrumentation/cmplog-instructions-pass.cc | |
parent | b9f469e12fde797e301845caa4b0fd44315318bd (diff) | |
download | afl++-90fdafa1ad167f43fb42cdec2335fa7416cc633c.tar.gz |
fix warnings and an llvm cmplog+lto panic
Diffstat (limited to 'instrumentation/cmplog-instructions-pass.cc')
-rw-r--r-- | instrumentation/cmplog-instructions-pass.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/instrumentation/cmplog-instructions-pass.cc b/instrumentation/cmplog-instructions-pass.cc index 6ce1832f..d4bc0b38 100644 --- a/instrumentation/cmplog-instructions-pass.cc +++ b/instrumentation/cmplog-instructions-pass.cc @@ -277,8 +277,12 @@ bool CmpLogInstructions::hookInstrs(Module &M) { if (max_size % 8) { - max_size = (((max_size / 8) + 1) * 8); - do_cast = 1; + // bitcast from i6 to i8 panics llvm, so ... + continue; + /* + max_size = (((max_size / 8) + 1) * 8); + do_cast = 1; + */ } |