[clang] [clang][driver] Allow unaligned access on ARMv7 and higher by default (PR #82400)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 20 10:38:19 PST 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 9facaaddadd63a1668c212c8a9ef94a5ad4c6629 20634c2f54ae667ee8374d12e58e582aa6cdd051 -- clang/lib/Driver/ToolChains/Arch/ARM.cpp clang/test/Driver/arm-alignment.c
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Driver/ToolChains/Arch/ARM.cpp b/clang/lib/Driver/ToolChains/Arch/ARM.cpp
index 3bf6056f0c..a1aea39792 100644
--- a/clang/lib/Driver/ToolChains/Arch/ARM.cpp
+++ b/clang/lib/Driver/ToolChains/Arch/ARM.cpp
@@ -906,7 +906,7 @@ fp16_fml_fallthrough:
Triple.getSubArch() == llvm::Triple::SubArchType::ARMSubArch_v6m)
Features.push_back("+strict-align");
} else if (VersionNum < 7)
- Features.push_back("+strict-align");
+ Features.push_back("+strict-align");
}
// llvm does not support reserving registers in general. There is support
``````````
</details>
https://github.com/llvm/llvm-project/pull/82400
More information about the cfe-commits
mailing list