Introduce and use convenience methods for getting pointer types
[oota-llvm.git] / lib / VMCore / AutoUpgrade.cpp
index 3f23b8d9934cda44755f7bc0681c2aba8c8b3dc2..f70075d9e60d4417c150021ef5c34882753f5942 100644 (file)
@@ -265,7 +265,7 @@ void llvm::UpgradeIntrinsicCall(CallInst *CI, Function *NewFn) {
       if (isLoadH || isLoadL) {
         Value *Op1 = UndefValue::get(Op0->getType());
         Value *Addr = new BitCastInst(CI->getOperand(2), 
-                                  PointerType::getUnqual(Type::getDoubleTy(C)),
+                                  Type::getDoublePtrTy(C),
                                       "upgraded.", CI);
         Value *Load = new LoadInst(Addr, "upgraded.", false, 8, CI);
         Value *Idx = ConstantInt::get(Type::getInt32Ty(C), 0);