commit | 55f1c09e31cfc6744fb682e17a2a1a00d914694c | [log] [tgz] |
---|---|---|
author | Owen Anderson <resistor@mac.com> | Thu Aug 13 21:58:54 2009 +0000 |
committer | Owen Anderson <resistor@mac.com> | Thu Aug 13 21:58:54 2009 +0000 |
tree | e753e20c7186dc8138bef58089274bb5162a7cef | |
parent | 41a750271b72216801366693bd0f41672892c487 [diff] [blame] |
Push LLVMContexts through the IntegerType APIs. llvm-svn: 78948
diff --git a/llvm/lib/Target/Target.cpp b/llvm/lib/Target/Target.cpp index ed544b7..cc6be9f 100644 --- a/llvm/lib/Target/Target.cpp +++ b/llvm/lib/Target/Target.cpp
@@ -41,7 +41,7 @@ } LLVMTypeRef LLVMIntPtrType(LLVMTargetDataRef TD) { - return wrap(unwrap(TD)->getIntPtrType()); + return wrap(unwrap(TD)->getIntPtrType(getGlobalContext())); } unsigned long long LLVMSizeOfTypeInBits(LLVMTargetDataRef TD, LLVMTypeRef Ty) {