Author: labath Date: Mon Mar 11 08:00:11 2019 New Revision: 355827 URL: http://llvm.org/viewvc/llvm-project?rev=355827&view=rev Log: Attempt to fix MSVC build error after r355824
Adding parens should be enough to fix the "'operator bool': is ambiguous or is not a member of 'lldb::SBFoo'" errors. Modified: lldb/trunk/include/lldb/Utility/ReproducerInstrumentation.h Modified: lldb/trunk/include/lldb/Utility/ReproducerInstrumentation.h URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Utility/ReproducerInstrumentation.h?rev=355827&r1=355826&r2=355827&view=diff ============================================================================== --- lldb/trunk/include/lldb/Utility/ReproducerInstrumentation.h (original) +++ lldb/trunk/include/lldb/Utility/ReproducerInstrumentation.h Mon Mar 11 08:00:11 2019 @@ -71,11 +71,12 @@ template <typename... Ts> inline std::st Register<Class * Signature>(&construct<Class Signature>::doit, "", #Class, \ #Class, #Signature) #define LLDB_REGISTER_METHOD(Result, Class, Method, Signature) \ - Register(&invoke<Result(Class::*) Signature>::method<&Class::Method>::doit, \ - #Result, #Class, #Method, #Signature) + Register( \ + &invoke<Result(Class::*) Signature>::method<(&Class::Method)>::doit, \ + #Result, #Class, #Method, #Signature) #define LLDB_REGISTER_METHOD_CONST(Result, Class, Method, Signature) \ Register(&invoke<Result(Class::*) \ - Signature const>::method_const<&Class::Method>::doit, \ + Signature const>::method_const<(&Class::Method)>::doit, \ #Result, #Class, #Method, #Signature) #define LLDB_REGISTER_STATIC_METHOD(Result, Class, Method, Signature) \ Register<Result Signature>(static_cast<Result(*) Signature>(&Class::Method), \ @@ -113,8 +114,8 @@ template <typename... Ts> inline std::st sb_recorder.emplace(data.GetSerializer(), data.GetRegistry(), \ LLVM_PRETTY_FUNCTION); \ sb_recorder->Record( \ - &lldb_private::repro::invoke<Result( \ - Class::*) Signature>::method<&Class::Method>::doit, \ + &lldb_private::repro::invoke<Result(Class::*) Signature>::method<( \ + &Class::Method)>::doit, \ this, __VA_ARGS__); \ } @@ -128,7 +129,7 @@ template <typename... Ts> inline std::st LLVM_PRETTY_FUNCTION); \ sb_recorder->Record( \ &lldb_private::repro::invoke<Result( \ - Class::*) Signature const>::method_const<&Class::Method>::doit, \ + Class::*) Signature const>::method_const<(&Class::Method)>::doit, \ this, __VA_ARGS__); \ } @@ -141,7 +142,7 @@ template <typename... Ts> inline std::st sb_recorder.emplace(data.GetSerializer(), data.GetRegistry(), \ LLVM_PRETTY_FUNCTION); \ sb_recorder->Record(&lldb_private::repro::invoke<Result ( \ - Class::*)()>::method<&Class::Method>::doit, \ + Class::*)()>::method<(&Class::Method)>::doit, \ this); \ } @@ -155,7 +156,7 @@ template <typename... Ts> inline std::st LLVM_PRETTY_FUNCTION); \ sb_recorder->Record( \ &lldb_private::repro::invoke<Result ( \ - Class::*)() const>::method_const<&Class::Method>::doit, \ + Class::*)() const>::method_const<(&Class::Method)>::doit, \ this); \ } _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits