[PATCH] D47006: [NFC] fix getOperandNo in PredIterator.

Simon Moll via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 17 01:27:41 PDT 2018


simoll created this revision.
Herald added a subscriber: llvm-commits.

Repository:
  rL LLVM

https://reviews.llvm.org/D47006

Files:
  include/llvm/IR/CFG.h


Index: include/llvm/IR/CFG.h
===================================================================
--- include/llvm/IR/CFG.h
+++ include/llvm/IR/CFG.h
@@ -80,7 +80,7 @@
   /// getOperandNo - Return the operand number in the predecessor's
   /// terminator of the successor.
   unsigned getOperandNo() const {
-    return It.getOperandNo();
+    return It.getUse().getOperandNo();
   }
 
   /// getUse - Return the operand Use in the predecessor's terminator


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47006.147262.patch
Type: text/x-patch
Size: 456 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180517/f0994521/attachment.bin>


More information about the llvm-commits mailing list