[llvm-commits] [llvm] r44139 - /llvm/trunk/lib/VMCore/Verifier.cpp
Duncan Sands
baldrick at free.fr
Wed Nov 14 13:58:03 PST 2007
Author: baldrick
Date: Wed Nov 14 15:58:02 2007
New Revision: 44139
URL: http://llvm.org/viewvc/llvm-project?rev=44139&view=rev
Log:
I discover array_lengthof, thanks to gabor on #llvm.
Modified:
llvm/trunk/lib/VMCore/Verifier.cpp
Modified: llvm/trunk/lib/VMCore/Verifier.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Verifier.cpp?rev=44139&r1=44138&r2=44139&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Verifier.cpp (original)
+++ llvm/trunk/lib/VMCore/Verifier.cpp Wed Nov 14 15:58:02 2007
@@ -436,8 +436,7 @@
}
- 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);
More information about the llvm-commits
mailing list