diff options
| author | Vikram S. Adve <vadve@cs.uiuc.edu> | 2001-11-15 15:22:39 +0000 |
|---|---|---|
| committer | Vikram S. Adve <vadve@cs.uiuc.edu> | 2001-11-15 15:22:39 +0000 |
| commit | 5c8f573bbff8f86fa82e460e764243ce9036a879 (patch) | |
| tree | 0b3e66ba6b35894428f28b7f9c4d1bd3840bf877 /llvm/lib/Target/Sparc | |
| parent | fbb8a647496ce46a9b122b60ea64d39ded76ac57 (diff) | |
| download | bcm5719-llvm-5c8f573bbff8f86fa82e460e764243ce9036a879.tar.gz bcm5719-llvm-5c8f573bbff8f86fa82e460e764243ce9036a879.zip | |
Fix use of AllocateLocalVar for alloca instruction!
llvm-svn: 1319
Diffstat (limited to 'llvm/lib/Target/Sparc')
| -rw-r--r-- | llvm/lib/Target/Sparc/SparcInstrSelection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/Sparc/SparcInstrSelection.cpp b/llvm/lib/Target/Sparc/SparcInstrSelection.cpp index 8966db2f3e4..d1b7149960d 100644 --- a/llvm/lib/Target/Sparc/SparcInstrSelection.cpp +++ b/llvm/lib/Target/Sparc/SparcInstrSelection.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. |

