]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Remove redundant check related to parsing “-x”
authorJoel Rosdahl <joel@rosdahl.net>
Mon, 5 Oct 2020 08:51:38 +0000 (10:51 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Mon, 5 Oct 2020 08:51:38 +0000 (10:51 +0200)
src/argprocessing.cpp

index c3593e6ded274e167c1bac0e93f3b60f8855e3bb..0ae32c133e5c952abf849a3aab42345f2286b745 100644 (file)
@@ -412,12 +412,12 @@ process_arg(Context& ctx,
       i++;
       return nullopt;
     }
-    if (args[i].length() >= 3) {
-      if (args_info.input_file.empty()) {
-        state.explicit_language = args[i].substr(2);
-      }
-      return nullopt;
+
+    DEBUG_ASSERT(args[i].length() >= 3);
+    if (args_info.input_file.empty()) {
+      state.explicit_language = args[i].substr(2);
     }
+    return nullopt;
   }
 
   // We need to work out where the output was meant to go.