aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVikram S. Adve <vadve@cs.uiuc.edu>2001-11-15 15:22:39 +0000
committerVikram S. Adve <vadve@cs.uiuc.edu>2001-11-15 15:22:39 +0000
commit345bcc8be1a2fe964b47295b58574b81796fc60c (patch)
tree52633a5976b40f9c678810710f8ae72e1de51d56
parent7c47c7201d762c24bc6140b6e5a2ac511aec5cb1 (diff)
Fix use of AllocateLocalVar for alloca instruction!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1319 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/SparcV9/SparcV9InstrSelection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/SparcV9/SparcV9InstrSelection.cpp b/lib/Target/SparcV9/SparcV9InstrSelection.cpp
index 8966db2f3e..d1b7149960 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.