diff options
author | Arthur Eubanks <aeubanks@google.com> | 2021-08-16 16:07:47 -0700 |
---|---|---|
committer | Arthur Eubanks <aeubanks@google.com> | 2021-08-16 16:12:37 -0700 |
commit | 0d822da2bdda30a6a79971f9d160c82a4566f6a6 (patch) | |
tree | ad720da1d8e0068f4771a977a2ecc17c3f0e323a /llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | |
parent | 7256c05ecb76137f1e4ac255e128fb9c73d6b4a5 (diff) | |
download | llvm-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.cpp | 2 |
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); |