summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/Interpreter
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-02-10 19:55:17 +0000
committerChris Lattner <sabre@nondot.org>2007-02-10 19:55:17 +0000
commitc473d8e431a219a3c46cf5b469506b5f6d3d4e79 (patch)
treeddb7ec728f4f42312539b9b41230fa66fbc8dc52 /llvm/lib/ExecutionEngine/Interpreter
parent2230c96657dac09702bfd31931902da8e514687b (diff)
downloadbcm5719-llvm-c473d8e431a219a3c46cf5b469506b5f6d3d4e79.tar.gz
bcm5719-llvm-c473d8e431a219a3c46cf5b469506b5f6d3d4e79.zip
Privatize StructLayout::MemberOffsets, adding an accessor
llvm-svn: 34156
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter')
-rw-r--r--llvm/lib/ExecutionEngine/Interpreter/Execution.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp b/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp
index fe80dfddd63..936d64f4441 100644
--- a/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp
+++ b/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp
@@ -1082,7 +1082,7 @@ GenericValue Interpreter::executeGEPOperation(Value *Ptr, gep_type_iterator I,
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...
OpenPOWER on IntegriCloud