diff mbox series

[1/4] libcpp/mkdeps: fix indentation

Message ID 20240504150446.473575-2-ben.boeckel@kitware.com
State New
Headers show
Series P1689 followup fixes | expand

Commit Message

Ben Boeckel May 4, 2024, 3:04 p.m. UTC
Fixes: 024f135a1e9 (p1689r5: initial support, 2023-09-01)

Reported-by: Roland Illig <roland.illig@gmx.de>

libcpp/

	* mkdeps.cc (fdeps_add_target): Fix indentation.

Signed-off-by: Ben Boeckel <ben.boeckel@kitware.com>
---
 libcpp/mkdeps.cc | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
diff mbox series

Patch

diff --git a/libcpp/mkdeps.cc b/libcpp/mkdeps.cc
index 4cf0cf09178..8762ead4c34 100644
--- a/libcpp/mkdeps.cc
+++ b/libcpp/mkdeps.cc
@@ -307,11 +307,12 @@  fdeps_add_target (struct mkdeps *d, const char *o, bool is_primary)
 {
   o = apply_vpath (d, o);
   if (is_primary)
-  {
-    if (d->primary_output)
-      d->fdeps_targets.push (d->primary_output);
-    d->primary_output = xstrdup (o);
-  } else
+    {
+      if (d->primary_output)
+	d->fdeps_targets.push (d->primary_output);
+      d->primary_output = xstrdup (o);
+    }
+  else
     d->fdeps_targets.push (xstrdup (o));
 }