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