From 3c898c211907f5fd03a026fdf0e17deb35e27d1a Mon Sep 17 00:00:00 2001 From: George Burgess IV Date: Wed, 21 Jan 2015 16:37:21 +0000 Subject: [PATCH] Fixed a bug with how we determine bitset indices. llvm-svn: 226671 --- llvm/lib/Analysis/CFLAliasAnalysis.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Analysis/CFLAliasAnalysis.cpp b/llvm/lib/Analysis/CFLAliasAnalysis.cpp index 88bb84a..9783671 100644 --- a/llvm/lib/Analysis/CFLAliasAnalysis.cpp +++ b/llvm/lib/Analysis/CFLAliasAnalysis.cpp @@ -774,7 +774,7 @@ static Optional valueToAttrIndex(Value *Val) { } static StratifiedAttr argNumberToAttrIndex(unsigned ArgNum) { - if (ArgNum > AttrMaxNumArgs) + if (ArgNum >= AttrMaxNumArgs) return AttrAllIndex; return ArgNum + AttrFirstArgIndex; } -- 2.7.4