summaryrefslogtreecommitdiff
path: root/lib/ExecutionEngine/ExecutionEngine.cpp
diff options
context:
space:
mode:
authorJay Foad <jay.foad@gmail.com>2011-07-19 14:01:37 +0000
committerJay Foad <jay.foad@gmail.com>2011-07-19 14:01:37 +0000
commit8fbbb3980755d74539a0aed02bc18842ed2bd18d (patch)
tree2fc3d8aa307866ae8c2e2ca38d196c87caa7a435 /lib/ExecutionEngine/ExecutionEngine.cpp
parent1d2f569c3428d70d0cf690c9adb459ad4a3ecff2 (diff)
downloadllvm-8fbbb3980755d74539a0aed02bc18842ed2bd18d.tar.gz
llvm-8fbbb3980755d74539a0aed02bc18842ed2bd18d.tar.bz2
llvm-8fbbb3980755d74539a0aed02bc18842ed2bd18d.tar.xz
Convert TargetData::getIndexedOffset to use ArrayRef.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135478 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/ExecutionEngine.cpp')
-rw-r--r--lib/ExecutionEngine/ExecutionEngine.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/ExecutionEngine/ExecutionEngine.cpp b/lib/ExecutionEngine/ExecutionEngine.cpp
index 4995fa99cd..8f5e190a2b 100644
--- a/lib/ExecutionEngine/ExecutionEngine.cpp
+++ b/lib/ExecutionEngine/ExecutionEngine.cpp
@@ -549,8 +549,7 @@ GenericValue ExecutionEngine::getConstantValue(const Constant *C) {
// Compute the index
GenericValue Result = getConstantValue(Op0);
SmallVector<Value*, 8> Indices(CE->op_begin()+1, CE->op_end());
- uint64_t Offset =
- TD->getIndexedOffset(Op0->getType(), &Indices[0], Indices.size());
+ uint64_t Offset = TD->getIndexedOffset(Op0->getType(), Indices);
char* tmp = (char*) Result.PointerVal;
Result = PTOGV(tmp + Offset);