diff options
author | Arthur Eubanks <aeubanks@google.com> | 2021-08-17 20:25:16 -0700 |
---|---|---|
committer | Arthur Eubanks <aeubanks@google.com> | 2021-08-17 21:05:41 -0700 |
commit | 3f4d00bc3b514d3218089fce15457457fc3312c3 (patch) | |
tree | 9f545ececa0fc35c7dcc5affff27b8f20044b95a /llvm/lib/CodeGen/CommandFlags.cpp | |
parent | de0ae9e89ec437d9f58e4b2da04d210c161854a3 (diff) | |
download | llvm-3f4d00bc3b514d3218089fce15457457fc3312c3.zip llvm-3f4d00bc3b514d3218089fce15457457fc3312c3.tar.gz llvm-3f4d00bc3b514d3218089fce15457457fc3312c3.tar.bz2 |
[NFC] More get/removeAttribute() cleanup
Diffstat (limited to 'llvm/lib/CodeGen/CommandFlags.cpp')
-rw-r--r-- | llvm/lib/CodeGen/CommandFlags.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/CommandFlags.cpp b/llvm/lib/CodeGen/CommandFlags.cpp index 19f3959..c30e1c3 100644 --- a/llvm/lib/CodeGen/CommandFlags.cpp +++ b/llvm/lib/CodeGen/CommandFlags.cpp @@ -672,8 +672,7 @@ void codegen::setFunctionAttributes(StringRef CPU, StringRef Features, if (const auto *F = Call->getCalledFunction()) if (F->getIntrinsicID() == Intrinsic::debugtrap || F->getIntrinsicID() == Intrinsic::trap) - Call->addAttribute( - AttributeList::FunctionIndex, + Call->addFnAttr( Attribute::get(Ctx, "trap-func-name", getTrapFuncName())); // Let NewAttrs override Attrs. |