diff options
author | Segher Boessenkool <segher@kernel.crashing.org> | 2022-09-10 15:13:40 +0000 |
---|---|---|
committer | Segher Boessenkool <segher@kernel.crashing.org> | 2022-09-10 15:23:13 +0000 |
commit | 16d752a514033a9e37fed2a7f78024e222ca26b9 (patch) | |
tree | 1b15fc0e2b13c7a64ef1c3564b7a08da8638e9be /gcc | |
parent | 7d37c7f67c1bb75f85ad0c07bfff51ca579e1476 (diff) | |
download | gcc-16d752a514033a9e37fed2a7f78024e222ca26b9.zip gcc-16d752a514033a9e37fed2a7f78024e222ca26b9.tar.gz gcc-16d752a514033a9e37fed2a7f78024e222ca26b9.tar.bz2 |
rs6000: Make an "if" statement more regular
As Akari noticed, we have an unusual "if" statement without parentheses
around the condition. The condition is a macro that expands to
something with parentheses in the right spot, but, let's make the code a
little less surprising :-)
2022-09-10 Akari Takahashi <akaritakahashioss@gmail.com>
Segher Boessenkool <segher@kernel.crashing.org>
* config/rs6000/rs6000.cc (get_memref_parts): Regularize some code.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/rs6000/rs6000.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/rs6000/rs6000.cc b/gcc/config/rs6000/rs6000.cc index a656cb3..bcf634a 100644 --- a/gcc/config/rs6000/rs6000.cc +++ b/gcc/config/rs6000/rs6000.cc @@ -18114,7 +18114,7 @@ get_memref_parts (rtx mem, rtx *base, HOST_WIDE_INT *offset, HOST_WIDE_INT *size) { rtx addr_rtx; - if MEM_SIZE_KNOWN_P (mem) + if (MEM_SIZE_KNOWN_P (mem)) *size = MEM_SIZE (mem); else return false; |