[llvm] [BOLT] Support non-null MCInst operands in annotation handling (PR #192188)
Brian Cain via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 16 06:57:23 PDT 2026
================
@@ -117,8 +117,14 @@ template <typename ValueType> class MCSimpleAnnotation : public MCAnnotation {
/// annotations.
inline unsigned getNumPrimeOperands(const MCInst &Inst) {
for (signed I = Inst.getNumOperands() - 1; I >= 0; --I) {
- if (Inst.getOperand(I).isInst())
- return I;
+ if (Inst.getOperand(I).isInst()) {
----------------
androm3da wrote:
Good suggestion, thanks - I think the newest push should address this.
https://github.com/llvm/llvm-project/pull/192188
More information about the llvm-commits
mailing list