summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGObjCMac.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/CodeGen/CGObjCMac.cpp')
-rw-r--r--clang/lib/CodeGen/CGObjCMac.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGObjCMac.cpp b/clang/lib/CodeGen/CGObjCMac.cpp
index c29b435b978..641d1571382 100644
--- a/clang/lib/CodeGen/CGObjCMac.cpp
+++ b/clang/lib/CodeGen/CGObjCMac.cpp
@@ -2517,7 +2517,8 @@ llvm::Constant *CGObjCCommonMac::getBitmapBlockLayout(bool ComputeByrefLayout) {
printf(", BL_WEAK:%d", (int) numWeak);
printf(", BL_OPERATOR:0\n");
}
- return llvm::ConstantInt::get(CGM.IntPtrTy, Result);
+ return llvm::ConstantExpr::getIntToPtr(
+ llvm::ConstantInt::get(CGM.IntPtrTy, Result), CGM.Int8PtrTy);
}
unsigned char inst = (BLOCK_LAYOUT_OPERATOR << 4) | 0;
OpenPOWER on IntegriCloud