[llvm-commits] CVS: llvm/lib/Analysis/ConstantFolding.cpp
Chris Lattner
sabre at nondot.org
Sat Feb 10 11:55:50 PST 2007
Changes in directory llvm/lib/Analysis:
ConstantFolding.cpp updated: 1.16 -> 1.17
---
Log message:
Privatize StructLayout::MemberOffsets, adding an accessor
---
Diffs of the changes: (+1 -1)
ConstantFolding.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/Analysis/ConstantFolding.cpp
diff -u llvm/lib/Analysis/ConstantFolding.cpp:1.16 llvm/lib/Analysis/ConstantFolding.cpp:1.17
--- llvm/lib/Analysis/ConstantFolding.cpp:1.16 Thu Feb 1 20:16:21 2007
+++ llvm/lib/Analysis/ConstantFolding.cpp Sat Feb 10 13:55:17 2007
@@ -70,7 +70,7 @@
if (const StructType *ST = dyn_cast<StructType>(*GTI)) {
// N = N + Offset
- Offset += TD.getStructLayout(ST)->MemberOffsets[CI->getZExtValue()];
+ Offset += TD.getStructLayout(ST)->getElementOffset(CI->getZExtValue());
} else {
const SequentialType *ST = cast<SequentialType>(*GTI);
Offset += TD.getTypeSize(ST->getElementType())*CI->getSExtValue();
More information about the llvm-commits
mailing list