Add in support for getIntPtrType to get the pointer type based on the address space.
[oota-llvm.git] / lib / Target / Target.cpp
index 393178a4692e2431026acc6b662f53dbf0e04804..7d3dd8f015a8a495eb66ee393406f5fd8572d9bf 100644 (file)
@@ -64,7 +64,7 @@ unsigned LLVMPointerSizeForAS(LLVMTargetDataRef TD, unsigned AS) {
 }
 
 LLVMTypeRef LLVMIntPtrType(LLVMTargetDataRef TD) {
-  return wrap(unwrap(TD)->getIntPtrType(getGlobalContext()));
+  return wrap(unwrap(TD)->getIntPtrType(getGlobalContext(), 0));
 }
 
 LLVMTypeRef LLVMIntPtrTypeForAS(LLVMTargetDataRef TD, unsigned AS) {