From 345bcc8be1a2fe964b47295b58574b81796fc60c Mon Sep 17 00:00:00 2001 From: "Vikram S. Adve" Date: Thu, 15 Nov 2001 15:22:39 +0000 Subject: [PATCH] Fix use of AllocateLocalVar for alloca instruction! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1319 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/SparcV9/SparcV9InstrSelection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Target/SparcV9/SparcV9InstrSelection.cpp b/lib/Target/SparcV9/SparcV9InstrSelection.cpp index 8966db2f3e4..d1b7149960d 100644 --- a/lib/Target/SparcV9/SparcV9InstrSelection.cpp +++ b/lib/Target/SparcV9/SparcV9InstrSelection.cpp @@ -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. -- 2.34.1