aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/MachOWriter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/CodeGen/MachOWriter.cpp')
-rw-r--r--lib/CodeGen/MachOWriter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/MachOWriter.cpp b/lib/CodeGen/MachOWriter.cpp
index 384dd3e..fe9d997 100644
--- a/lib/CodeGen/MachOWriter.cpp
+++ b/lib/CodeGen/MachOWriter.cpp
@@ -779,9 +779,9 @@ void MachOWriter::InitMem(const Constant *C, void *Addr, intptr_t Offset,
//
switch (CE->getOpcode()) {
case Instruction::GetElementPtr: {
- std::vector<Value*> Indexes(CE->op_begin()+1, CE->op_end());
+ SmallVector<Value*, 8> Indices(CE->op_begin()+1, CE->op_end());
ScatteredOffset = TD->getIndexedOffset(CE->getOperand(0)->getType(),
- Indexes);
+ &Indices[0], Indices.size());
WorkList.push_back(CPair(CE->getOperand(0), PA));
break;
}