[PATCH] D61011: [NFC] PHINode: introduce replaceIncomingBlockWith() function, use it

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 25 17:05:01 PDT 2019


craig.topper added inline comments.


================
Comment at: include/llvm/IR/Instructions.h:2745
+    for (unsigned Op = 0, NumOps = getNumOperands(); Op != NumOps; ++Op) {
+      BasicBlock *Curr = getIncomingBlock(Op);
+      if (Curr == Old)
----------------
Drop the temporary variable. And then you can probably drop the curly braces.


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D61011/new/

https://reviews.llvm.org/D61011





More information about the llvm-commits mailing list