mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-25 13:08:00 +00:00
I discover array_lengthof, thanks to gabor on #llvm.
llvm-svn: 44139
This commit is contained in:
parent
91b3db2956
commit
5924300986
@ -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