summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorJay Foad <jay.foad@gmail.com>2009-05-21 09:52:38 +0000
committerJay Foad <jay.foad@gmail.com>2009-05-21 09:52:38 +0000
commit7d0479f2c2d60ccff381ce63105168bd132fb304 (patch)
tree417d43f95d605528391e6ab8c9a460f9b6347b83 /llvm/lib/CodeGen
parent9fc7856e3b6f549030863bf35441b456a0affec7 (diff)
downloadbcm5719-llvm-7d0479f2c2d60ccff381ce63105168bd132fb304.tar.gz
bcm5719-llvm-7d0479f2c2d60ccff381ce63105168bd132fb304.zip
Use v.data() instead of &v[0] when SmallVector v might be empty.
llvm-svn: 72210
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index 0c37f526292..5c8cf7568bc 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -1041,7 +1041,7 @@ SDValue SelectionDAGLegalize::LegalizeOp(SDValue Op) {
for (unsigned i = 0, e = Node->getNumOperands(); i != e; ++i)
Ops.push_back(LegalizeOp(Node->getOperand(i)));
- Result = DAG.UpdateNodeOperands(Result.getValue(0), &Ops[0], Ops.size());
+ Result = DAG.UpdateNodeOperands(Result.getValue(0), Ops.data(), Ops.size());
for (unsigned i = 0, e = Node->getNumValues(); i != e; ++i)
AddLegalizedOperand(Op.getValue(i), Result.getValue(i));
OpenPOWER on IntegriCloud