factor a creation of Int32Ty.

llvm-svn: 85422
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp
index ba93e5d..c6111fa 100644
--- a/clang/lib/CodeGen/CodeGenFunction.cpp
+++ b/clang/lib/CodeGen/CodeGenFunction.cpp
@@ -496,9 +496,10 @@
   
   EmitBlock(createBasicBlock("indirectgoto"));
   
+  const llvm::IntegerType *Int32Ty = llvm::Type::getInt32Ty(VMContext);
+
   // Create the PHI node that indirect gotos will add entries to.
-  llvm::Value *DestVal =
-    Builder.CreatePHI(llvm::Type::getInt32Ty(VMContext), "indirect.goto.dest");
+  llvm::Value *DestVal = Builder.CreatePHI(Int32Ty, "indirect.goto.dest");
   
   // Create the switch instruction.  For now, set the insert block to this block
   // which will be fixed as labels are added.
@@ -524,8 +525,6 @@
     IndirectGotoSwitch->setSuccessor(0,
                                 getBasicBlockForLabel(AddrTakenLabelsByID[0]));
     
-    const llvm::IntegerType *Int32Ty = llvm::Type::getInt32Ty(VMContext);
-    
     // FIXME: The iteration order of this is nondeterminstic!
     for (unsigned i = 1, e = AddrTakenLabelsByID.size(); i != e; ++i)
       IndirectGotoSwitch->addCase(llvm::ConstantInt::get(Int32Ty, i+1),