diff --git a/include/llvm/iMemory.h b/include/llvm/iMemory.h index 1dbc1dbea34..8c5344fed1f 100644 --- a/include/llvm/iMemory.h +++ b/include/llvm/iMemory.h @@ -193,7 +193,7 @@ public: const vector &getIndices() const { return indexVec; } inline bool hasIndices() const { - return getNumOperands() <= getFirstIndexOperandNumber(); + return getNumOperands() > getFirstIndexOperandNumber(); } };