[Lldb-commits] [lldb] 073e7a0 - Work around MSVC compiler intricacies.
Adrian Prantl via lldb-commits
lldb-commits at lists.llvm.org
Tue Jun 15 08:18:29 PDT 2021
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();
More information about the lldb-commits
mailing list