diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2017-02-02 05:45:43 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2017-02-02 05:45:43 +0000 |
commit | 8de4e87305a8c9ca44518644ba6e8f5908f8ee1b (patch) | |
tree | be3924461064edd240b69fda50ee165db8841978 | |
parent | 0bf1b863b93f855afc6aaac88ef145cf414a90dc (diff) | |
download | bcm5719-llvm-8de4e87305a8c9ca44518644ba6e8f5908f8ee1b.tar.gz bcm5719-llvm-8de4e87305a8c9ca44518644ba6e8f5908f8ee1b.zip |
CodeGen: add a LLVM_FALLTHROUGH to a fallthrough (NFC)
Drive by cleanup noticed while investigating an IR verifier assertion.
llvm-svn: 293867
-rw-r--r-- | clang/lib/CodeGen/CGClass.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGClass.cpp b/clang/lib/CodeGen/CGClass.cpp index 3152b6b0758..c3e907e9cd5 100644 --- a/clang/lib/CodeGen/CGClass.cpp +++ b/clang/lib/CodeGen/CGClass.cpp @@ -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); |