[cfe-commits] r162236 - /cfe/trunk/lib/Driver/Option.cpp

David Blaikie dblaikie at gmail.com
Mon Aug 20 15:22:52 PDT 2012


Author: dblaikie
Date: Mon Aug 20 17:22:51 2012
New Revision: 162236

URL: http://llvm.org/viewvc/llvm-project?rev=162236&view=rev
Log:
Fix -Wswitch warning introduced by r162231

Modified:
    cfe/trunk/lib/Driver/Option.cpp

Modified: cfe/trunk/lib/Driver/Option.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Option.cpp?rev=162236&r1=162235&r2=162236&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/Option.cpp (original)
+++ cfe/trunk/lib/Driver/Option.cpp Mon Aug 20 17:22:51 2012
@@ -199,6 +199,7 @@
     return new Arg(getUnaliasedOption(), Index - 2,
                    Args.getArgString(Index-2)+getName().size(),
                    Args.getArgString(Index-1));
+  default:
+    llvm_unreachable("Invalid option kind!");
   }
-  llvm_unreachable("Invalid option kind!");
 }





More information about the cfe-commits mailing list