aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/NVPTX/NVPTXISelLowering.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-10-04 06:43:21 +0000
committerBill Wendling <isanbard@gmail.com>2012-10-04 06:43:21 +0000
commit8f00ae6a3f8d392ce0f42a81223e479f97876d7f (patch)
tree80a046a9c058fcbb0fbcc7529784eb2f6cc15888 /lib/Target/NVPTX/NVPTXISelLowering.cpp
parent41d876cea3b5212e5ee8bc25c13c6eab54a4a93c (diff)
downloadexternal_llvm-8f00ae6a3f8d392ce0f42a81223e479f97876d7f.zip
external_llvm-8f00ae6a3f8d392ce0f42a81223e479f97876d7f.tar.gz
external_llvm-8f00ae6a3f8d392ce0f42a81223e479f97876d7f.tar.bz2
Use new accessor methods to query for attributes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165205 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 6ea10ea..5a48ea8 100644
--- a/lib/Target/NVPTX/NVPTXISelLowering.cpp
+++ b/lib/Target/NVPTX/NVPTXISelLowering.cpp
@@ -965,7 +965,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.paramHasAttr(i+1, Attribute::ByVal) == false) {
+ if (PAL.getParamAttributes(i+1).hasByValAttr() == false) {
// A plain scalar.
if (isABI || isKernel) {
// If ABI, load from the param symbol