Author: Adrian Prantl Date: 2021-06-15T08:17:56-07:00 New Revision: 073e7a08e83ab61198e6b9e106369e876a5b7509
URL: https://github.com/llvm/llvm-project/commit/073e7a08e83ab61198e6b9e106369e876a5b7509 DIFF: https://github.com/llvm/llvm-project/commit/073e7a08e83ab61198e6b9e106369e876a5b7509.diff LOG: Work around MSVC compiler intricacies. Added: Modified: lldb/include/lldb/Utility/Timer.h Removed: ################################################################################ diff --git a/lldb/include/lldb/Utility/Timer.h b/lldb/include/lldb/Utility/Timer.h index ae30e719aa41..4696a80319a9 100644 --- a/lldb/include/lldb/Utility/Timer.h +++ b/lldb/include/lldb/Utility/Timer.h @@ -47,7 +47,11 @@ class Timer { /// Default constructor. Timer(Category &category, const char *format, ...) - __attribute__((format(printf, 3, 4))); +#if !defined(_MSC_VER) + // MSVC appears to have trouble recognizing the this argument in the constructor. + __attribute__((format(printf, 3, 4))) +#endif + ; /// Destructor ~Timer(); _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits