mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 22:28:18 +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:
@@ -436,8 +436,7 @@ void Verifier::visitFunction(Function &F) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for (unsigned i = 0; i * sizeof MutuallyIncompatible[0] <
|
for (unsigned i = 0; i < array_lengthof(MutuallyIncompatible); ++i) {
|
||||||
sizeof MutuallyIncompatible; ++i) {
|
|
||||||
uint16_t MutI = Attr & MutuallyIncompatible[i];
|
uint16_t MutI = Attr & MutuallyIncompatible[i];
|
||||||
Assert1(!(MutI & (MutI - 1)), "Attributes " +
|
Assert1(!(MutI & (MutI - 1)), "Attributes " +
|
||||||
Attrs->getParamAttrsText(MutI) + "are incompatible!", &F);
|
Attrs->getParamAttrsText(MutI) + "are incompatible!", &F);
|
||||||
|
Reference in New Issue
Block a user