[llvm] Fix compiler errors in GVN.h for clang versions older than 15 (PR #107636)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 6 14:11:28 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 7f77db4ffca9b275b40e8720208a03dd6cbc390e 946d770d6b9d8917fa4e5ffbaef89c2cedaabb94 --extensions h -- llvm/include/llvm/Support/Compiler.h llvm/include/llvm/Transforms/Scalar/GVN.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/Transforms/Scalar/GVN.h b/llvm/include/llvm/Transforms/Scalar/GVN.h
index be6c0ec5ed..e6adb183ff 100644
--- a/llvm/include/llvm/Transforms/Scalar/GVN.h
+++ b/llvm/include/llvm/Transforms/Scalar/GVN.h
@@ -62,7 +62,7 @@ struct AvailableValue;
struct AvailableValueInBlock;
class GVNLegacyPass;
-} // end namespace gvn
+} // namespace LLVM_LIBRARY_VISIBILITY_NAMESPACE gvn
/// A set of parameters to control various transforms performed by GVN pass.
// Each of the optional boolean parameters can be set to:
``````````
</details>
https://github.com/llvm/llvm-project/pull/107636
More information about the llvm-commits
mailing list