Fixed a bug with how we determine bitset indices.
authorGeorge Burgess IV <george.burgess.iv@gmail.com>
Wed, 21 Jan 2015 16:37:21 +0000 (16:37 +0000)
committerGeorge Burgess IV <george.burgess.iv@gmail.com>
Wed, 21 Jan 2015 16:37:21 +0000 (16:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226671 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/CFLAliasAnalysis.cpp

index 88bb84a8002085ace288288cd34941e964358d91..9783671b09a3ff4337f297dff06244c7b28ce20d 100644 (file)
@@ -774,7 +774,7 @@ static Optional<StratifiedAttr> valueToAttrIndex(Value *Val) {
 }
 
 static StratifiedAttr argNumberToAttrIndex(unsigned ArgNum) {
 }
 
 static StratifiedAttr argNumberToAttrIndex(unsigned ArgNum) {
-  if (ArgNum > AttrMaxNumArgs)
+  if (ArgNum >= AttrMaxNumArgs)
     return AttrAllIndex;
   return ArgNum + AttrFirstArgIndex;
 }
     return AttrAllIndex;
   return ArgNum + AttrFirstArgIndex;
 }