diff options
author | Chris Lattner <sabre@nondot.org> | 2007-02-10 19:55:17 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-02-10 19:55:17 +0000 |
commit | b1919e2f08ecb37140af676fd2916f8d5ed7df3d (patch) | |
tree | c9373916caa20f1b69a6b4a5aa81c7c698c05d6f /lib/ExecutionEngine/Interpreter | |
parent | 68ce9ba666a7eb8c7eb3fb7888e4418fffd2e716 (diff) | |
download | external_llvm-b1919e2f08ecb37140af676fd2916f8d5ed7df3d.zip external_llvm-b1919e2f08ecb37140af676fd2916f8d5ed7df3d.tar.gz external_llvm-b1919e2f08ecb37140af676fd2916f8d5ed7df3d.tar.bz2 |
Privatize StructLayout::MemberOffsets, adding an accessor
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34156 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/Interpreter')
-rw-r--r-- | lib/ExecutionEngine/Interpreter/Execution.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/Interpreter/Execution.cpp b/lib/ExecutionEngine/Interpreter/Execution.cpp index fe80dfd..936d64f 100644 --- a/lib/ExecutionEngine/Interpreter/Execution.cpp +++ b/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... |