aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python
diff options
context:
space:
mode:
authorMed Ismail Bennani <medismail.bennani@gmail.com>2023-04-25 17:26:16 -0700
committerMed Ismail Bennani <medismail.bennani@gmail.com>2023-04-25 17:26:45 -0700
commitda0700829f163ad5d8bbd61aa137e586a816e06e (patch)
tree1c6de3c5bacbf12b770bdda6bc2feab633850669 /lldb/source/Plugins/ScriptInterpreter/Python
parent650f04feda9039e170de513dab261c672fa847cd (diff)
downloadllvm-da0700829f163ad5d8bbd61aa137e586a816e06e.zip
llvm-da0700829f163ad5d8bbd61aa137e586a816e06e.tar.gz
llvm-da0700829f163ad5d8bbd61aa137e586a816e06e.tar.bz2
[lldb] Fix another GCC build failure in ScriptedPythonInterface.h
In 6c961ae, I've introduced a new explicit fully specialized templated method `ScriptedPythonInterface::ReverseTransform(bool&, PythonObject, Status&)`. However, that explicit specialization is causing GCC to choke when building the file as shown here: https://lab.llvm.org/buildbot/#/builders/217/builds/20430 To address that issue, this patch turns the method explicit specialization into an method overload. Differential Revision: https://reviews.llvm.org/D149218 Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python')
-rw-r--r--lldb/source/Plugins/ScriptInterpreter/Python/ScriptedPythonInterface.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptedPythonInterface.h b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptedPythonInterface.h
index 2a8ca26..04e2651 100644
--- a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptedPythonInterface.h
+++ b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptedPythonInterface.h
@@ -146,7 +146,7 @@ protected:
original_arg = ExtractValueFromPythonObject<T>(transformed_arg, error);
}
- template <>
+
void ReverseTransform(bool &original_arg,
python::PythonObject transformed_arg, Status &error) {
python::PythonBoolean boolean_arg = python::PythonBoolean(