r344784 - [ASTImporter] Removed uneeded default case label.

Balazs Keri via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 19 08:16:51 PDT 2018


Author: balazske
Date: Fri Oct 19 08:16:51 2018
New Revision: 344784

URL: http://llvm.org/viewvc/llvm-project?rev=344784&view=rev
Log:
[ASTImporter] Removed uneeded default case label.

Modified:
    cfe/trunk/lib/AST/ASTImporter.cpp

Modified: cfe/trunk/lib/AST/ASTImporter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ASTImporter.cpp?rev=344784&r1=344783&r2=344784&view=diff
==============================================================================
--- cfe/trunk/lib/AST/ASTImporter.cpp (original)
+++ cfe/trunk/lib/AST/ASTImporter.cpp Fri Oct 19 08:16:51 2018
@@ -89,9 +89,9 @@ namespace clang {
       return "UnsupportedConstruct";
     case Unknown:
       return "Unknown error";
-    default:
-      llvm_unreachable("Invalid error code.");
     }
+    llvm_unreachable("Invalid error code.");
+    return "Invalid error code.";
   }
 
   void ImportError::log(raw_ostream &OS) const {




More information about the cfe-commits mailing list