[clang] 6626e5a - Fix compilation warning from GCC7. NFC.

Michael Liao via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 9 07:11:40 PST 2019


Author: Michael Liao
Date: 2019-12-09T10:11:27-05:00
New Revision: 6626e5a06a99b29b388f2dffde2c16f8eb5ded46

URL: https://github.com/llvm/llvm-project/commit/6626e5a06a99b29b388f2dffde2c16f8eb5ded46
DIFF: https://github.com/llvm/llvm-project/commit/6626e5a06a99b29b388f2dffde2c16f8eb5ded46.diff

LOG: Fix compilation warning from GCC7. NFC.

Added: 
    

Modified: 
    clang/lib/Sema/SemaDeclCXX.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/Sema/SemaDeclCXX.cpp b/clang/lib/Sema/SemaDeclCXX.cpp
index c8b95983f03c..d0857a5de817 100644
--- a/clang/lib/Sema/SemaDeclCXX.cpp
+++ b/clang/lib/Sema/SemaDeclCXX.cpp
@@ -7103,6 +7103,7 @@ class DefaultedComparisonVisitor {
     ResultList Results;
 
     switch (DCK) {
+    default:
     case DefaultedComparisonKind::None:
       llvm_unreachable("not a defaulted comparison");
 
@@ -7592,6 +7593,7 @@ class DefaultedComparisonSynthesizer
       return StmtError();
 
     switch (DCK) {
+    default:
     case DefaultedComparisonKind::None:
       llvm_unreachable("not a defaulted comparison");
 


        


More information about the cfe-commits mailing list