summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/iMemory.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/iMemory.h b/llvm/include/llvm/iMemory.h
index 1dbc1dbea34..8c5344fed1f 100644
--- a/llvm/include/llvm/iMemory.h
+++ b/llvm/include/llvm/iMemory.h
@@ -193,7 +193,7 @@ public:
const vector<ConstPoolVal*> &getIndices() const { return indexVec; }
inline bool hasIndices() const {
- return getNumOperands() <= getFirstIndexOperandNumber();
+ return getNumOperands() > getFirstIndexOperandNumber();
}
};
OpenPOWER on IntegriCloud