[clang] [MSVC] work-around for compile time issue 102513 (PR #110986)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 3 04:42:03 PDT 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 7506872afc6c1cc7556eed5128a2030b6eb8ca29 2579ce88f4e757e068621e1763d3aabb5352a223 --extensions cpp -- clang/lib/AST/ByteCode/Interp.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/AST/ByteCode/Interp.cpp b/clang/lib/AST/ByteCode/Interp.cpp
index 38d52e9318..acfa2fd212 100644
--- a/clang/lib/AST/ByteCode/Interp.cpp
+++ b/clang/lib/AST/ByteCode/Interp.cpp
@@ -1435,7 +1435,7 @@ bool Interpret(InterpState &S, APValue &Result) {
}
}
// https://github.com/llvm/llvm-project/issues/102513
-#if defined (_MSC_VER)
+#if defined(_MSC_VER)
#pragma optimize("", on)
#endif
``````````
</details>
https://github.com/llvm/llvm-project/pull/110986
More information about the cfe-commits
mailing list