From df5252165524fbcabbd7287a8d923b5139247114 Mon Sep 17 00:00:00 2001 From: Jeremy Morse Date: Mon, 4 Mar 2024 19:27:36 +0000 Subject: [PATCH] [RemoveDIs] Follow up to 6b62a9135a2, fix a ICmpInst constructor call Seemingly I either missed this on a buildbot or otherwise didn't cover this :( --- llvm/examples/ParallelJIT/ParallelJIT.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/examples/ParallelJIT/ParallelJIT.cpp b/llvm/examples/ParallelJIT/ParallelJIT.cpp index 7da105d201b917..c736f170e877e9 100644 --- a/llvm/examples/ParallelJIT/ParallelJIT.cpp +++ b/llvm/examples/ParallelJIT/ParallelJIT.cpp @@ -104,7 +104,7 @@ static Function *CreateFibFunction(Module *M) { BasicBlock *RecurseBB = BasicBlock::Create(Context, "recurse", FibF); // Create the "if (arg < 2) goto exitbb" - Value *CondInst = new ICmpInst(*BB, ICmpInst::ICMP_SLE, ArgX, Two, "cond"); + Value *CondInst = new ICmpInst(BB, ICmpInst::ICMP_SLE, ArgX, Two, "cond"); BranchInst::Create(RetBB, RecurseBB, CondInst, BB); // Create: ret int 1