diff options
| author | Chris Lattner <sabre@nondot.org> | 2007-02-10 20:35:22 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2007-02-10 20:35:22 +0000 |
| commit | c44bd78a2ebc9188e02393bbd074e2b5a418b6db (patch) | |
| tree | 69a9445b8cda000d1e65d9c7ebe8259bec1a92d5 /llvm/lib/ExecutionEngine/ExecutionEngine.cpp | |
| parent | b402e74fcd68029c29230597fc9386edb389b41d (diff) | |
| download | bcm5719-llvm-c44bd78a2ebc9188e02393bbd074e2b5a418b6db.tar.gz bcm5719-llvm-c44bd78a2ebc9188e02393bbd074e2b5a418b6db.zip | |
eliminate use of TargetData::getIndexedOffset that takes a vector
llvm-svn: 34163
Diffstat (limited to 'llvm/lib/ExecutionEngine/ExecutionEngine.cpp')
| -rw-r--r-- | llvm/lib/ExecutionEngine/ExecutionEngine.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp index 6878f89fffb..28b515e3faf 100644 --- a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp +++ b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp @@ -334,9 +334,10 @@ GenericValue ExecutionEngine::getConstantValue(const Constant *C) { case Instruction::GetElementPtr: { // Compute the index Result = getConstantValue(CE->getOperand(0)); - std::vector<Value*> Indexes(CE->op_begin()+1, CE->op_end()); + SmallVector<Value*, 8> Indices(CE->op_begin()+1, CE->op_end()); uint64_t Offset = - TD->getIndexedOffset(CE->getOperand(0)->getType(), Indexes); + TD->getIndexedOffset(CE->getOperand(0)->getType(), + &Indices[0], Indices.size()); if (getTargetData()->getPointerSize() == 4) Result.Int32Val += Offset; |

