Avoid creating dummy block when no indirect gotos are present.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54322 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/CodeGenFunction.cpp b/lib/CodeGen/CodeGenFunction.cpp
index 9814ae7..e153c21 100644
--- a/lib/CodeGen/CodeGenFunction.cpp
+++ b/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 {