Skip to content

Commit

Permalink
Fix build compilation with latest LLVM version
Browse files Browse the repository at this point in the history
rustc LLVM was upgraded in:

rust-lang/rust#30448

This fixes compatibility with API changes

Fixes #38
  • Loading branch information
frewsxcv committed Jan 31, 2016
1 parent 4dae9ee commit 5b727dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/src/afl-llvm-pass.so.cc
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ bool AFLCoverage::runOnModule(Module &M) {
for (auto &BB : F) {

BasicBlock::iterator IP = BB.getFirstInsertionPt();
IRBuilder<> IRB(IP);
IRBuilder<> IRB(&*IP);

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

Expand Down

0 comments on commit 5b727dd

Please sign in to comment.