<div dir="ltr">This is a verifier check.But i am not getting how to resolve this.Do i need to change the function return type or some thing else.<div><br></div><div><div>ValueToValueMapTy VMap;</div><div>    BasicBlock *clonedBlock =CloneBasicBlock(bb, VMap, ".tr", bb->getParent());</div><div><span class="" style="white-space:pre">    </span>std::cout<<"clone done"<<"\n";</div><div>       TerminatorInst *merge_term=bb->getTerminator();</div><div><span class="" style="white-space:pre"> </span>std::cout<<"got terminator"<<"\n";</div><div> <span class="" style="white-space:pre">       </span>TerminatorInst *new_term=clonedBlock->getTerminator();</div><div><span class="" style="white-space:pre">          </span>   errs()<<"new terminator instuction in perf:"<<*new_term<<"\n";</div><div>                  //Perform the ReMapping of Clonedinstructions</div><div>                  for (BasicBlock::iterator I = clonedBlock->begin(); I != clonedBlock->end(); ++I)</div><div>                    {</div><div>                      //Loop over all the operands of the instruction</div><div>                      for (unsigned op=0, E = I->getNumOperands(); op != E; ++op)</div><div>                        {</div><div>                          const Value *Op = I->getOperand(op);</div><div>                          //Get it out of the value map</div><div>                          Value *V = VMap[Op];</div><div>                          //If not in the value map, then its outside our trace so ignore</div><div>                          if(V != 0)</div><div>                            I->setOperand(op,V);</div><div>                        }</div><div>                    }</div><div>        merge_term->setOperand(0,clonedBlock);</div><div><span class="" style="white-space:pre">       </span>std::cout<<"set terminator"<<"\n";</div></div><div><br></div><div>this is my pass</div></div>