COFF: Handle /failifmismatch in the same manner as other options.

No functionality change intended.

llvm-svn: 240061
diff --git a/lld/COFF/Driver.cpp b/lld/COFF/Driver.cpp
index 8345728..9c2e53e 100644
--- a/lld/COFF/Driver.cpp
+++ b/lld/COFF/Driver.cpp
@@ -105,8 +105,9 @@
       return EC;
 
   // Handle /failifmismatch
-  if (auto EC = checkFailIfMismatch(Args.get()))
-    return EC;
+  for (auto *Arg : Args->filtered(OPT_failifmismatch))
+    if (auto EC = checkFailIfMismatch(Arg->getValue()))
+      return EC;
 
   // Handle /defaultlib
   for (auto *Arg : Args->filtered(OPT_defaultlib)) {
@@ -366,10 +367,9 @@
   }
 
   // Handle /failifmismatch
-  if (auto EC = checkFailIfMismatch(Args.get())) {
-    llvm::errs() << "/failifmismatch: " << EC.message() << "\n";
-    return false;
-  }
+  for (auto *Arg : Args->filtered(OPT_failifmismatch))
+    if (checkFailIfMismatch(Arg->getValue()))
+      return false;
 
   // Handle /def
   if (auto *Arg = Args->getLastArg(OPT_deffile)) {