summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2019-03-11 15:00:11 +0000
committerPavel Labath <pavel@labath.sk>2019-03-11 15:00:11 +0000
commit075e133a3d9a86e2b82c783f784541784f0c9de4 (patch)
treed1e220f5d3e81f9cc204d1df6a44113bfa5dda48
parent28e13eb0983ce6d15a363231edd9015636bc52da (diff)
downloadbcm5719-llvm-075e133a3d9a86e2b82c783f784541784f0c9de4.tar.gz
bcm5719-llvm-075e133a3d9a86e2b82c783f784541784f0c9de4.zip
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. llvm-svn: 355827
-rw-r--r--lldb/include/lldb/Utility/ReproducerInstrumentation.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/lldb/include/lldb/Utility/ReproducerInstrumentation.h b/lldb/include/lldb/Utility/ReproducerInstrumentation.h
index 3eba529c050..adba3aacb95 100644
--- a/lldb/include/lldb/Utility/ReproducerInstrumentation.h
+++ b/lldb/include/lldb/Utility/ReproducerInstrumentation.h
@@ -71,11 +71,12 @@ template <typename... Ts> inline std::string log_args(const Ts &... ts) {
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::string log_args(const Ts &... ts) {
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::string log_args(const Ts &... ts) {
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::string log_args(const Ts &... ts) {
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::string log_args(const Ts &... ts) {
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); \
}
OpenPOWER on IntegriCloud