Skip to content

Commit 307e3c2

Browse files
committed
Merge pull request #40 from frewsxcv/llvm-compatibility
Fix build compilation with latest LLVM version
2 parents 4dae9ee + 5b727dd commit 307e3c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
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)