We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc093a8 commit 1c26efeCopy full SHA for 1c26efe
llvm/lib/IR/Constants.cpp
@@ -681,9 +681,8 @@ Constant::PossibleRelocationsTy Constant::getRelocationInfo() const {
681
}
682
683
PossibleRelocationsTy Result = NoRelocation;
684
- for (unsigned i = 0, e = getNumOperands(); i != e; ++i)
685
- Result =
686
- std::max(cast<Constant>(getOperand(i))->getRelocationInfo(), Result);
+ for (const Value *Op : operands())
+ Result = std::max(cast<Constant>(Op)->getRelocationInfo(), Result);
687
688
return Result;
689
0 commit comments