projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f04d584
)
I discover array_lengthof, thanks to gabor on #llvm.
author
Duncan Sands
<baldrick@free.fr>
Wed, 14 Nov 2007 21:58:02 +0000
(21:58 +0000)
committer
Duncan Sands
<baldrick@free.fr>
Wed, 14 Nov 2007 21:58:02 +0000
(21:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44139
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/Verifier.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/Verifier.cpp
b/lib/VMCore/Verifier.cpp
index c5387c61c17ae7c9a065dfc9e2852e3cc9358db0..5af9216fb42ca3452f25dae991ffe3fa97442196 100644
(file)
--- a/
lib/VMCore/Verifier.cpp
+++ b/
lib/VMCore/Verifier.cpp
@@
-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);