forked from OSchip/llvm-project
parent
6efc2ba7f8
commit
0f8487c632
|
@ -899,7 +899,8 @@ void CodeGenFunction::EmitCaseStmt(const CaseStmt &S) {
|
|||
|
||||
// If the body of the case is just a 'break', and if there was no fallthrough,
|
||||
// try to not emit an empty block.
|
||||
if ((CGM.getCodeGenOpts().OptimizationLevel > 0) && isa<BreakStmt>(S.getSubStmt())) {
|
||||
if ((CGM.getCodeGenOpts().OptimizationLevel > 0) &&
|
||||
isa<BreakStmt>(S.getSubStmt())) {
|
||||
JumpDest Block = BreakContinueStack.back().BreakBlock;
|
||||
|
||||
// Only do this optimization if there are no cleanups that need emitting.
|
||||
|
|
Loading…
Reference in New Issue