Avoid creating dummy block when no indirect gotos are present.

llvm-svn: 54322
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp
index 9814ae7..e153c21 100644
--- a/clang/lib/CodeGen/CodeGenFunction.cpp
+++ b/clang/lib/CodeGen/CodeGenFunction.cpp
@@ -190,6 +190,9 @@
 void CodeGenFunction::EmitIndirectSwitches() {
   llvm::BasicBlock *Default;
   
+  if (IndirectSwitches.empty())
+    return;
+  
   if (!LabelIDs.empty()) {
     Default = getBasicBlockForLabel(LabelIDs.begin()->first);
   } else {