Introduce and use convenience methods for getting pointer types
[oota-llvm.git] / lib / Analysis / PointerTracking.cpp
index 22818369b8bf7e1eeb572c2ca10f7101b2ec3005..43f4af36d81c30ee1b327948340de60f617a6a26 100644 (file)
@@ -48,7 +48,7 @@ void PointerTracking::getAnalysisUsage(AnalysisUsage &AU) const {
 }
 
 bool PointerTracking::doInitialization(Module &M) {
-  const Type *PTy = PointerType::getUnqual(Type::getInt8Ty(M.getContext()));
+  const Type *PTy = Type::getInt8PtrTy(M.getContext());
 
   // Find calloc(i64, i64) or calloc(i32, i32).
   callocFunc = M.getFunction("calloc");