Changes in directory llvm/lib/ExecutionEngine/Interpreter:

Execution.cpp updated: 1.168 -> 1.169
---
Log message:

Privatize StructLayout::MemberOffsets, adding an accessor


---
Diffs of the changes:  (+1 -1)

 Execution.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/ExecutionEngine/Interpreter/Execution.cpp
diff -u llvm/lib/ExecutionEngine/Interpreter/Execution.cpp:1.168 
llvm/lib/ExecutionEngine/Interpreter/Execution.cpp:1.169
--- llvm/lib/ExecutionEngine/Interpreter/Execution.cpp:1.168    Wed Feb  7 
18:29:31 2007
+++ llvm/lib/ExecutionEngine/Interpreter/Execution.cpp  Sat Feb 10 13:55:17 2007
@@ -1082,7 +1082,7 @@
       const ConstantInt *CPU = cast<ConstantInt>(I.getOperand());
       unsigned Index = unsigned(CPU->getZExtValue());
 
-      Total += (PointerTy)SLO->MemberOffsets[Index];
+      Total += (PointerTy)SLO->getElementOffset(Index);
     } else {
       const SequentialType *ST = cast<SequentialType>(*I);
       // Get the index number for the array... which must be long type...



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to