mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
I discover array_lengthof, thanks to gabor on #llvm.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44139 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f04d584cae
commit
c455ebeb0c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user