aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.cpp
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2020-09-24 21:44:14 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2020-09-25 17:01:06 +0000
commit76eb163259c46171559a49111a394a3e48d1e523 (patch)
tree7a760070978423b6ea2fdff5bb9fc0d099681586 /lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.cpp
parentb5e87c9ef2243ecd65e0ef87a1bf303c0c26db04 (diff)
downloadllvm-76eb163259c46171559a49111a394a3e48d1e523.zip
llvm-76eb163259c46171559a49111a394a3e48d1e523.tar.gz
llvm-76eb163259c46171559a49111a394a3e48d1e523.tar.bz2
Sema: remove unnecessary parameter for SwiftName handling (NFCI)
This code never actually did anything in the implementation. `mergeDeclAttribute` is declared as `static`, and referenced exactly once in the file: from `Sema::mergeDeclAttributes`. `Sema::mergeDeclAttributes` sets `LocalAMK` to `AMK_None`. If the attribute is `DeprecatedAttr`, `UnavailableAttr`, or `AvailabilityAttr` then the `LocalAMK` is updated. However, because we are dealing with a `SwiftNameDeclAttr` here, `LocalAMK` remains `AMK_None`. This is then passed to the function which will as a result pass the value of `AMK_None == AMK_Override` aka `false`. Simply propagate the value through and erase the dead codepath. Thanks to Aaron Ballman for flagging the use of the availability merge kind here leading to this simplification! Differential Revision: https://reviews.llvm.org/D88263 Reviewed By: Aaron Ballman
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonReadline.cpp')
0 files changed, 0 insertions, 0 deletions