[llvm-commits] CVS: llvm/lib/Target/SparcV9/SparcV9BurgISel.cpp
Chris Lattner
lattner at cs.uiuc.edu
Wed Feb 8 18:19:28 PST 2006
Changes in directory llvm/lib/Target/SparcV9:
SparcV9BurgISel.cpp updated: 1.25 -> 1.26
---
Log message:
Always pass in an alignment.
---
Diffs of the changes: (+2 -1)
SparcV9BurgISel.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
Index: llvm/lib/Target/SparcV9/SparcV9BurgISel.cpp
diff -u llvm/lib/Target/SparcV9/SparcV9BurgISel.cpp:1.25 llvm/lib/Target/SparcV9/SparcV9BurgISel.cpp:1.26
--- llvm/lib/Target/SparcV9/SparcV9BurgISel.cpp:1.25 Tue Aug 2 14:25:03 2005
+++ llvm/lib/Target/SparcV9/SparcV9BurgISel.cpp Wed Feb 8 20:19:16 2006
@@ -1139,7 +1139,8 @@
// Get the constant pool index for this constant
MachineConstantPool *CP = MachineFunction::get(F).getConstantPool();
Constant *C = cast<Constant>(val);
- unsigned CPI = CP->getConstantPoolIndex(C);
+ unsigned Align = target.getTargetData().getTypeAlignmentShift(C->getType());
+ unsigned CPI = CP->getConstantPoolIndex(C, Align);
// Put the address of the constant into a register
MachineInstr* MI;
More information about the llvm-commits
mailing list