Bug fix for Chris.
authorVikram S. Adve <vadve@cs.uiuc.edu>
Thu, 15 Nov 2001 15:00:48 +0000 (15:00 +0000)
committerVikram S. Adve <vadve@cs.uiuc.edu>
Thu, 15 Nov 2001 15:00:48 +0000 (15:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1316 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/iMemory.h

index 1dbc1dbea3482ab2f309035e9c328f0c5b2fc8b1..8c5344fed1f9a5126802f5592a0c814e3b648277 100644 (file)
@@ -193,7 +193,7 @@ public:
 
   const vector<ConstPoolVal*> &getIndices() const { return indexVec; }
   inline bool hasIndices() const {
-    return getNumOperands() <= getFirstIndexOperandNumber();
+    return getNumOperands() > getFirstIndexOperandNumber();
   }
 };