// condition.
auto* BB = UsageInst->getParent();
auto* InsertPoint = UsageInst->getNextNode();
+ while (dyn_cast<PHINode>(InsertPoint)) {
+ InsertPoint = InsertPoint->getNextNode();
+ }
IRBuilder<true, NoFolder> Builder(InsertPoint);
// First thing is to cast 'UsageInst' to an integer type if necessary.
Value* AndTarget = nullptr;