[clang] 64e9044 - Fix unintended fall-through.

Richard Smith via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 8 14:25:26 PDT 2021


Author: Richard Smith
Date: 2021-10-08T14:25:17-07:00
New Revision: 64e9044ea43d2cee2a927bf221c5395a40a5e2fd

URL: https://github.com/llvm/llvm-project/commit/64e9044ea43d2cee2a927bf221c5395a40a5e2fd
DIFF: https://github.com/llvm/llvm-project/commit/64e9044ea43d2cee2a927bf221c5395a40a5e2fd.diff

LOG: Fix unintended fall-through.

Unfortunately I've not found a way to exercise this code that doesn't
crash elsewhere yet, due to unrelated bugs in how Sema incorrectly
instantiates lambdas in function template signatures.

Added: 
    

Modified: 
    clang/lib/AST/ItaniumMangle.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/AST/ItaniumMangle.cpp b/clang/lib/AST/ItaniumMangle.cpp
index 2d373c15031d..799da1247cd3 100644
--- a/clang/lib/AST/ItaniumMangle.cpp
+++ b/clang/lib/AST/ItaniumMangle.cpp
@@ -4972,6 +4972,7 @@ void CXXNameMangler::mangleExpression(const Expr *E, unsigned Arity,
     Out << "L";
     mangleType(Context.getASTContext().getRecordType(cast<LambdaExpr>(E)->getLambdaClass()));
     Out << "E";
+    break;
   }
 
   case Expr::PackExpansionExprClass:


        


More information about the cfe-commits mailing list