aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
diff options
context:
space:
mode:
authorArthur Eubanks <aeubanks@google.com>2021-08-16 16:07:47 -0700
committerArthur Eubanks <aeubanks@google.com>2021-08-16 16:12:37 -0700
commit0d822da2bdda30a6a79971f9d160c82a4566f6a6 (patch)
treead720da1d8e0068f4771a977a2ecc17c3f0e323a /llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
parent7256c05ecb76137f1e4ac255e128fb9c73d6b4a5 (diff)
downloadllvm-0d822da2bdda30a6a79971f9d160c82a4566f6a6.zip
llvm-0d822da2bdda30a6a79971f9d160c82a4566f6a6.tar.gz
llvm-0d822da2bdda30a6a79971f9d160c82a4566f6a6.tar.bz2
[NFC] Remove/replace some confusing attribute getters on Function
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
index aebd89e..411cee3 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
@@ -2668,7 +2668,7 @@ void SelectionDAGBuilder::visitSPDescriptorParent(StackProtectorDescriptor &SPD,
TargetLowering::ArgListEntry Entry;
Entry.Node = GuardVal;
Entry.Ty = FnTy->getParamType(0);
- if (GuardCheckFn->hasAttribute(1, Attribute::AttrKind::InReg))
+ if (GuardCheckFn->hasParamAttribute(0, Attribute::AttrKind::InReg))
Entry.IsInReg = true;
Args.push_back(Entry);