[Lldb-commits] [lldb] da07008 - [lldb] Fix another GCC build failure in ScriptedPythonInterface.h

Med Ismail Bennani via lldb-commits lldb-commits at lists.llvm.org
Tue Apr 25 17:26:54 PDT 2023


Author: Med Ismail Bennani
Date: 2023-04-25T17:26:45-07:00
New Revision: da0700829f163ad5d8bbd61aa137e586a816e06e

URL: https://github.com/llvm/llvm-project/commit/da0700829f163ad5d8bbd61aa137e586a816e06e
DIFF: https://github.com/llvm/llvm-project/commit/da0700829f163ad5d8bbd61aa137e586a816e06e.diff

LOG: [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 at gmail.com>

Added: 
    

Modified: 
    lldb/source/Plugins/ScriptInterpreter/Python/ScriptedPythonInterface.h

Removed: 
    


################################################################################
diff  --git a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptedPythonInterface.h b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptedPythonInterface.h
index 2a8ca262b91d..04e265159e43 100644
--- a/lldb/source/Plugins/ScriptInterpreter/Python/ScriptedPythonInterface.h
+++ b/lldb/source/Plugins/ScriptInterpreter/Python/ScriptedPythonInterface.h
@@ -146,7 +146,7 @@ class ScriptedPythonInterface : virtual public ScriptedInterface {
     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(


        


More information about the lldb-commits mailing list