From: Adrian Prantl Date: Tue, 15 Jun 2021 15:17:28 +0000 (-0700) Subject: Work around MSVC compiler intricacies. X-Git-Tag: llvmorg-14-init~3914 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=073e7a08e83ab61198e6b9e106369e876a5b7509;p=platform%2Fupstream%2Fllvm.git Work around MSVC compiler intricacies. --- diff --git a/lldb/include/lldb/Utility/Timer.h b/lldb/include/lldb/Utility/Timer.h index ae30e71..4696a80 100644 --- a/lldb/include/lldb/Utility/Timer.h +++ b/lldb/include/lldb/Utility/Timer.h @@ -47,7 +47,11 @@ public: /// 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();