Fix use of AllocateLocalVar for alloca instruction!
llvm-svn: 1319
diff --git a/llvm/lib/Target/Sparc/SparcInstrSelection.cpp b/llvm/lib/Target/Sparc/SparcInstrSelection.cpp
index 8966db2..d1b7149 100644
--- a/llvm/lib/Target/Sparc/SparcInstrSelection.cpp
+++ b/llvm/lib/Target/Sparc/SparcInstrSelection.cpp
@@ -1858,7 +1858,7 @@
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.