[llvm] r226671 - Fixed a bug with how we determine bitset indices.
George Burgess IV
george.burgess.iv at gmail.com
Wed Jan 21 08:37:21 PST 2015
Author: gbiv
Date: Wed Jan 21 10:37:21 2015
New Revision: 226671
URL: http://llvm.org/viewvc/llvm-project?rev=226671&view=rev
Log:
Fixed a bug with how we determine bitset indices.
Modified:
llvm/trunk/lib/Analysis/CFLAliasAnalysis.cpp
Modified: llvm/trunk/lib/Analysis/CFLAliasAnalysis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/CFLAliasAnalysis.cpp?rev=226671&r1=226670&r2=226671&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/CFLAliasAnalysis.cpp (original)
+++ llvm/trunk/lib/Analysis/CFLAliasAnalysis.cpp Wed Jan 21 10:37:21 2015
@@ -774,7 +774,7 @@ static Optional<StratifiedAttr> valueToA
}
static StratifiedAttr argNumberToAttrIndex(unsigned ArgNum) {
- if (ArgNum > AttrMaxNumArgs)
+ if (ArgNum >= AttrMaxNumArgs)
return AttrAllIndex;
return ArgNum + AttrFirstArgIndex;
}
More information about the llvm-commits
mailing list