Eliminate yet another copy of getOpcode.
[oota-llvm.git] / lib / CodeGen / DwarfEHPrepare.cpp
index 4ef43fde50d48013415989e291e102ed784abfbe..3691ba0773a3d80f85cb599426b0867e48845d4d 100644 (file)
@@ -354,7 +354,8 @@ Instruction *DwarfEHPrepare::CreateValueLoad(BasicBlock *BB) {
 
   // Create the temporary if we didn't already.
   if (!ExceptionValueVar) {
-    ExceptionValueVar = new AllocaInst(PointerType::getUnqual(Type::Int8Ty),
+    ExceptionValueVar = new AllocaInst(
+                                    Context->getPointerTypeUnqual(Type::Int8Ty),
                                        "eh.value", F->begin()->begin());
     ++NumStackTempsIntroduced;
   }