commit | 1f8f0490690b06270ff949d7da3d10a6921606f4 | [log] [tgz] |
---|---|---|
author | Reid Kleckner <rnk@google.com> | Fri Apr 14 20:19:02 2017 +0000 |
committer | Reid Kleckner <rnk@google.com> | Fri Apr 14 20:19:02 2017 +0000 |
tree | e7ff7e0e11665cbb2b1c6f81a22bc5fa2f16a50f | |
parent | 2bb40bf078228d3ada725c7d6f373f91c9761d01 [diff] |
[IR] Make paramHasAttr to use arg indices instead of attr indices This avoids the confusing 'CS.paramHasAttr(ArgNo + 1, Foo)' pattern. Previously we were testing return value attributes with index 0, so I introduced hasReturnAttr() for that use case. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300367 91177308-0d34-0410-b5e6-96231b3b80d8