]> granicus.if.org Git - clang/commitdiff
CodeGen: add a LLVM_FALLTHROUGH to a fallthrough (NFC)
authorSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 2 Feb 2017 05:45:43 +0000 (05:45 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 2 Feb 2017 05:45:43 +0000 (05:45 +0000)
Drive by cleanup noticed while investigating an IR verifier assertion.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@293867 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGClass.cpp

index 3152b6b07585d74172b752a3ad4467cf5ce469c1..c3e907e9cd5796642042aebe7283127cb5264e8d 100644 (file)
@@ -1416,9 +1416,7 @@ void CodeGenFunction::EmitDestructorBody(FunctionArgList &Args) {
   // we'd introduce *two* handler blocks.  In the Microsoft ABI, we
   // always delegate because we might not have a definition in this TU.
   switch (DtorType) {
-  case Dtor_Comdat:
-    llvm_unreachable("not expecting a COMDAT");
-
+  case Dtor_Comdat: llvm_unreachable("not expecting a COMDAT");
   case Dtor_Deleting: llvm_unreachable("already handled deleting case");
 
   case Dtor_Complete:
@@ -1433,7 +1431,9 @@ void CodeGenFunction::EmitDestructorBody(FunctionArgList &Args) {
                             /*Delegating=*/false, LoadCXXThisAddress());
       break;
     }
+
     // Fallthrough: act like we're in the base variant.
+    LLVM_FALLTHROUGH;
 
   case Dtor_Base:
     assert(Body);