summaryrefslogtreecommitdiff
path: root/lib/Target/NVPTX/NVPTXISelLowering.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-12-30 13:50:49 +0000
committerBill Wendling <isanbard@gmail.com>2012-12-30 13:50:49 +0000
commit94e94b350652d3a71993bbc7d44afbe3b304605e (patch)
tree609b531981802fca42e99c872a3191b1219634c8 /lib/Target/NVPTX/NVPTXISelLowering.cpp
parent8b62abdd7b9c8fc5d78dad86093f4afdfeba949d (diff)
downloadllvm-94e94b350652d3a71993bbc7d44afbe3b304605e.tar.gz
llvm-94e94b350652d3a71993bbc7d44afbe3b304605e.tar.bz2
llvm-94e94b350652d3a71993bbc7d44afbe3b304605e.tar.xz
Use the predicate methods off of AttributeSet instead of Attribute.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171257 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/NVPTX/NVPTXISelLowering.cpp')
-rw-r--r--lib/Target/NVPTX/NVPTXISelLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/NVPTX/NVPTXISelLowering.cpp b/lib/Target/NVPTX/NVPTXISelLowering.cpp
index 82db0886c7..ba02c448eb 100644
--- a/lib/Target/NVPTX/NVPTXISelLowering.cpp
+++ b/lib/Target/NVPTX/NVPTXISelLowering.cpp
@@ -1022,7 +1022,7 @@ NVPTXTargetLowering::LowerFormalArguments(SDValue Chain,
// to newly created nodes. The SDNOdes for params have to
// appear in the same order as their order of appearance
// in the original function. "idx+1" holds that order.
- if (PAL.getParamAttributes(i+1).hasAttribute(Attribute::ByVal) == false) {
+ if (PAL.hasAttribute(i+1, Attribute::ByVal) == false) {
// A plain scalar.
if (isABI || isKernel) {
// If ABI, load from the param symbol