Fix compilation warning from GCC7. NFC.
authorMichael Liao <michael.hliao@gmail.com>
Mon, 9 Dec 2019 15:09:28 +0000 (10:09 -0500)
committerMichael Liao <michael.hliao@gmail.com>
Mon, 9 Dec 2019 15:11:27 +0000 (10:11 -0500)
clang/lib/Sema/SemaDeclCXX.cpp

index c8b9598..d0857a5 100644 (file)
@@ -7103,6 +7103,7 @@ public:
     ResultList Results;
 
     switch (DCK) {
+    default:
     case DefaultedComparisonKind::None:
       llvm_unreachable("not a defaulted comparison");
 
@@ -7592,6 +7593,7 @@ private:
       return StmtError();
 
     switch (DCK) {
+    default:
     case DefaultedComparisonKind::None:
       llvm_unreachable("not a defaulted comparison");