diff options
| author | George Burgess IV <george.burgess.iv@gmail.com> | 2016-12-01 17:52:39 +0000 |
|---|---|---|
| committer | George Burgess IV <george.burgess.iv@gmail.com> | 2016-12-01 17:52:39 +0000 |
| commit | 8a36ace5b12358a23b2d91ab197d4a7812561a59 (patch) | |
| tree | 0dea2ee88e933c3dadc02ffe789d4b739b5a0acb /llvm/lib/CodeGen/MachineScheduler.cpp | |
| parent | c962c6ac3bfd3eee9f54d2f9533e289ca094cc8a (diff) | |
| download | bcm5719-llvm-8a36ace5b12358a23b2d91ab197d4a7812561a59.tar.gz bcm5719-llvm-8a36ace5b12358a23b2d91ab197d4a7812561a59.zip | |
[TableGen] Ignore fake args for parsing-related arg counts.
We should complain about the following:
```
void foo() __attribute__((unavailable("a", "b")));
```
Instead, we currently just ignore "b". (...We also end up ignoring "a",
because we assume elsewhere that this attribute can only have 1 or 0
args.)
This happens because `unavailable` has a fake enum arg, and
`AttributeList::{getMinArgs,getMaxArgs}` include fake args in their
counts.
llvm-svn: 288388
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
0 files changed, 0 insertions, 0 deletions

