[clang] [FMV][RISCV] Add __riscv_feature_bits.length check (PR #110098)

via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 26 02:43:09 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 23487be4903630a4c06160562fb939f6389aa99d 838c6669d2f4464b9b528b0d633ad363b92e3b57 --extensions h,c,cpp -- clang/lib/CodeGen/CGBuiltin.cpp clang/lib/CodeGen/CodeGenFunction.cpp clang/lib/CodeGen/CodeGenFunction.h clang/test/CodeGen/attr-target-clones-riscv.c clang/test/CodeGenCXX/attr-target-clones-riscv.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp
index 9e558195aa..6589d1eeb8 100644
--- a/clang/lib/CodeGen/CodeGenFunction.cpp
+++ b/clang/lib/CodeGen/CodeGenFunction.cpp
@@ -2979,7 +2979,7 @@ void CodeGenFunction::EmitRISCVMultiVersionResolver(
     // __riscv_feature_bits object at runtime has the same length as on the
     // compiler side.
     //
-    // Second, 
+    // Second,
     // When condition is met, return this version of the function.
     // Otherwise, try the next version.
     //

``````````

</details>


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


More information about the cfe-commits mailing list