mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Fix use of AllocateLocalVar for alloca instruction!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1319 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7c47c7201d
commit
345bcc8be1
@ -1858,7 +1858,7 @@ GetInstructionsByRule(InstructionNode* subtreeRoot,
|
||||
|
||||
Method* method = instr->getParent()->getParent();
|
||||
MachineCodeForMethod& mcInfo = MachineCodeForMethod::get(method);
|
||||
int offsetFromFP = mcInfo.allocateLocalVar(target, instr);
|
||||
int offsetFromFP = mcInfo.allocateLocalVar(target, instr, (unsigned int) tsize);
|
||||
|
||||
// Create a temporary Value to hold the constant offset.
|
||||
// This is needed because it may not fit in the immediate field.
|
||||
|
Loading…
Reference in New Issue
Block a user