[clang] [llvm] Adjust MSVC disabled optimization pragmas to be _MSC_VER only (PR #116704)

Martin Storsjö via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 18 23:18:52 PST 2024


================
@@ -1616,7 +1616,7 @@ bool Interpret(InterpState &S, APValue &Result) {
   }
 }
 // https://github.com/llvm/llvm-project/issues/102513
-#if defined(_WIN32) && !defined(__clang__) && !defined(NDEBUG)
+#if defined(_MSC_VER) && !defined(__clang__) && !defined(NDEBUG)
 #pragma optimize("", on)
----------------
mstorsjo wrote:

Isn't this missing a second instance of the same further up in the file?

https://github.com/llvm/llvm-project/pull/116704


More information about the cfe-commits mailing list