summaryrefslogtreecommitdiff
path: root/MLKLexicalContext-MLKLLVMCompilation.mm
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <matthias@benkard.de>2008-09-02 20:18:54 +0200
committerMatthias Andreas Benkard <matthias@benkard.de>2008-09-02 20:18:54 +0200
commit07aea7334f5e82002bcbd86edb5cd811be57d441 (patch)
tree6c1249f9d0d6cd5232a19444cf1a893f086c42de /MLKLexicalContext-MLKLLVMCompilation.mm
parent3c786f910f73de547bdb2f853745b21097119598 (diff)
LLVM compiler: Treat closure data pointers as of type i8** rather than i8*.
Diffstat (limited to 'MLKLexicalContext-MLKLLVMCompilation.mm')
-rw-r--r--MLKLexicalContext-MLKLLVMCompilation.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/MLKLexicalContext-MLKLLVMCompilation.mm b/MLKLexicalContext-MLKLLVMCompilation.mm
index 5a279e5..37f03f5 100644
--- a/MLKLexicalContext-MLKLLVMCompilation.mm
+++ b/MLKLexicalContext-MLKLLVMCompilation.mm
@@ -55,7 +55,7 @@ id MLKDummyUseLLVMLexicalContext = nil;
-(Instruction *) functionCellValueForSymbol:(id)name
{
- std::vector<const Type *> types (1, PointerType::get(Type::Int8Ty, 0));
+ std::vector<const Type *> types (1, PointerType::get(PointerType::get(Type::Int8Ty, 0), 0));
return (new IntToPtrInst (ConstantInt::get(Type::Int64Ty,
(uint64_t)[self functionCellForSymbol:name],
false),
@@ -72,7 +72,7 @@ id MLKDummyUseLLVMLexicalContext = nil;
return (new IntToPtrInst (ConstantInt::get(Type::Int64Ty,
(uint64_t)[self closureDataPointerForSymbol:name],
false),
- PointerType::get(PointerType::get(Type::Int8Ty, 0), 0)));
+ PointerType::get(PointerType::get(PointerType::get(Type::Int8Ty, 0), 0), 0)));
}
-(Instruction *) globalBindingValueForSymbol:(id)name