output body of folded case again.
llvm-svn: 148361
diff --git a/clang/lib/CodeGen/CGStmt.cpp b/clang/lib/CodeGen/CGStmt.cpp
index c7a8cf6..97755e3 100644
--- a/clang/lib/CodeGen/CGStmt.cpp
+++ b/clang/lib/CodeGen/CGStmt.cpp
@@ -883,8 +883,10 @@
// when we've constant-folded the switch, are emitting the constant case,
// and part of the constant case includes another case statement. For
// instance: switch (4) { case 4: do { case 5: } while (1); }
- if (!SwitchInsn)
+ if (!SwitchInsn) {
+ EmitStmt(S.getSubStmt());
return;
+ }
// Handle case ranges.
if (S.getRHS()) {