diff mbox series

RISC-V: Clang-format add_vector_attribute function.

Message ID 20221011062159.69697-1-juzhe.zhong@rivai.ai
State New
Headers show
Series RISC-V: Clang-format add_vector_attribute function. | expand

Commit Message

钟居哲 Oct. 11, 2022, 6:21 a.m. UTC
From: Ju-Zhe Zhong <juzhe.zhong@rivai.ai>

gcc/ChangeLog:

        * config/riscv/riscv-vector-builtins.cc (add_vector_type_attribute): Clang-format function.

---
 gcc/config/riscv/riscv-vector-builtins.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Kito Cheng Oct. 12, 2022, 1:03 p.m. UTC | #1
Committed, thanks!

On Tue, Oct 11, 2022 at 2:22 PM <juzhe.zhong@rivai.ai> wrote:
>
> From: Ju-Zhe Zhong <juzhe.zhong@rivai.ai>
>
> gcc/ChangeLog:
>
>         * config/riscv/riscv-vector-builtins.cc (add_vector_type_attribute): Clang-format function.
>
> ---
>  gcc/config/riscv/riscv-vector-builtins.cc | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/gcc/config/riscv/riscv-vector-builtins.cc b/gcc/config/riscv/riscv-vector-builtins.cc
> index daf180801cc..4814b6ef6e7 100644
> --- a/gcc/config/riscv/riscv-vector-builtins.cc
> +++ b/gcc/config/riscv/riscv-vector-builtins.cc
> @@ -88,8 +88,8 @@ add_vector_type_attribute (tree type, const char *mangled_name)
>  {
>    tree mangled_name_tree = get_identifier (mangled_name);
>    tree value = tree_cons (NULL_TREE, mangled_name_tree, NULL_TREE);
> -  TYPE_ATTRIBUTES (type) = tree_cons (get_identifier ("RVV type"), value,
> -                                     TYPE_ATTRIBUTES (type));
> +  TYPE_ATTRIBUTES (type)
> +    = tree_cons (get_identifier ("RVV type"), value, TYPE_ATTRIBUTES (type));
>  }
>
>  /* Force TYPE to be a sizeless type.  */
> --
> 2.36.1
>
diff mbox series

Patch

diff --git a/gcc/config/riscv/riscv-vector-builtins.cc b/gcc/config/riscv/riscv-vector-builtins.cc
index daf180801cc..4814b6ef6e7 100644
--- a/gcc/config/riscv/riscv-vector-builtins.cc
+++ b/gcc/config/riscv/riscv-vector-builtins.cc
@@ -88,8 +88,8 @@  add_vector_type_attribute (tree type, const char *mangled_name)
 {
   tree mangled_name_tree = get_identifier (mangled_name);
   tree value = tree_cons (NULL_TREE, mangled_name_tree, NULL_TREE);
-  TYPE_ATTRIBUTES (type) = tree_cons (get_identifier ("RVV type"), value,
-				      TYPE_ATTRIBUTES (type));
+  TYPE_ATTRIBUTES (type)
+    = tree_cons (get_identifier ("RVV type"), value, TYPE_ATTRIBUTES (type));
 }
 
 /* Force TYPE to be a sizeless type.  */