diff options
author | Matthias Andreas Benkard <matthias@benkard.de> | 2008-08-16 21:58:26 +0200 |
---|---|---|
committer | Matthias Andreas Benkard <matthias@benkard.de> | 2008-08-16 22:02:06 +0200 |
commit | 40ee78a3229146beecdc16ce64e8270b7fdc7513 (patch) | |
tree | ad2b232499f63add1d4564c327437235810191e2 | |
parent | a78119062f100f3da6e1243ce464c2819da64a2b (diff) |
MLKFunctionCallForm(MLKLLVMCompilation): Remove spurious load instructions.
Simple function calls work now.
-rw-r--r-- | MLKLLVMCompiler.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MLKLLVMCompiler.mm b/MLKLLVMCompiler.mm index e9507a9..4313ac9 100644 --- a/MLKLLVMCompiler.mm +++ b/MLKLLVMCompiler.mm @@ -389,9 +389,9 @@ static Constant // XXX Issue a style warning. } - Value *functionCell = builder.CreateLoad ([_context functionCellValueForSymbol:_head]); + Value *functionCell = builder.Insert ([_context functionCellValueForSymbol:_head]); Value *functionPtr = builder.CreateLoad (functionCell); - Value *closureDataCell = builder.CreateLoad ([_context closureDataPointerValueForSymbol:_head]); + Value *closureDataCell = builder.Insert ([_context closureDataPointerValueForSymbol:_head]); Value *closureDataPtr = builder.CreateLoad (closureDataCell); NSEnumerator *e = [_argumentForms objectEnumerator]; |