From 5b727dd5fc27fec2b4288e70a544191aa78ec621 Mon Sep 17 00:00:00 2001 From: Corey Farwell Date: Sun, 31 Jan 2016 18:37:52 -0500 Subject: [PATCH] Fix build compilation with latest LLVM version rustc LLVM was upgraded in: /~https://github.com/rust-lang/rust/pull/30448 This fixes compatibility with API changes Fixes #38 --- plugin/src/afl-llvm-pass.so.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/src/afl-llvm-pass.so.cc b/plugin/src/afl-llvm-pass.so.cc index bd7c5ee6e..3cf8ecd9c 100644 --- a/plugin/src/afl-llvm-pass.so.cc +++ b/plugin/src/afl-llvm-pass.so.cc @@ -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;