projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23c574a
)
Always pass in an alignment.
author
Chris Lattner
<sabre@nondot.org>
Thu, 9 Feb 2006 02:19:16 +0000
(
02:19
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Thu, 9 Feb 2006 02:19:16 +0000
(
02:19
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26070
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/SparcV9/SparcV9BurgISel.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/SparcV9/SparcV9BurgISel.cpp
b/lib/Target/SparcV9/SparcV9BurgISel.cpp
index fd03641786be1f192d3d06cd2054246186ba626d..1c03a9eb869cdc26219941080cf24a8481adf2e5 100644
(file)
--- a/
lib/Target/SparcV9/SparcV9BurgISel.cpp
+++ b/
lib/Target/SparcV9/SparcV9BurgISel.cpp
@@
-1139,7
+1139,8
@@
void CreateCodeToLoadConst(const TargetMachine& target, Function* F,
// 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;