Skip to content

Commit 5b727dd

Browse files
committed
Fix build compilation with latest LLVM version
rustc LLVM was upgraded in: rust-lang/rust#30448 This fixes compatibility with API changes Fixes #38
1 parent 4dae9ee commit 5b727dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/src/afl-llvm-pass.so.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ bool AFLCoverage::runOnModule(Module &M) {
103103
for (auto &BB : F) {
104104

105105
BasicBlock::iterator IP = BB.getFirstInsertionPt();
106-
IRBuilder<> IRB(IP);
106+
IRBuilder<> IRB(&*IP);
107107

108108
if ((random() % 100) >= inst_ratio) continue;
109109

0 commit comments

Comments
 (0)