Skip to content

Commit

Permalink
fix build with latest LLVM
Browse files Browse the repository at this point in the history
  • Loading branch information
nunoplopes committed Mar 5, 2024
1 parent 2547695 commit bc77229
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/quick-fuzz.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ class ValueGenerator {
case 0: {
auto *LHS = getVal(Ty);
auto *RHS = getVal(Ty);
Val = new ICmpInst(*BB, randomPred(), LHS, RHS);
Val = new ICmpInst(BB, randomPred(), LHS, RHS);
} break;
case 1: {
auto *LHS = getVal(Ty);
Expand Down Expand Up @@ -852,7 +852,7 @@ void BBFuzzer::go() {
? new LoadInst(IntTy, Counters[C.choose(NumCounters)],
"", BBs[i])
: (Value *)ConstantInt::get(IntTy, C.choose(20));
Cond = new ICmpInst(*BBs[i], VG.randomPred(), LHS, RHS);
Cond = new ICmpInst(BBs[i], VG.randomPred(), LHS, RHS);
}
BranchInst::Create(Dest1, Dest2, Cond, BBs[i]);
} break;
Expand Down

0 comments on commit bc77229

Please sign in to comment.