I discover array_lengthof, thanks to gabor on #llvm.

llvm-svn: 44139
This commit is contained in:
Duncan Sands 2007-11-14 21:58:02 +00:00
parent 91b3db2956
commit 5924300986

View File

@ -436,8 +436,7 @@ void Verifier::visitFunction(Function &F) {
}
for (unsigned i = 0; i * sizeof MutuallyIncompatible[0] <
sizeof MutuallyIncompatible; ++i) {
for (unsigned i = 0; i < array_lengthof(MutuallyIncompatible); ++i) {
uint16_t MutI = Attr & MutuallyIncompatible[i];
Assert1(!(MutI & (MutI - 1)), "Attributes " +
Attrs->getParamAttrsText(MutI) + "are incompatible!", &F);