Use .data() instead of &x[0]

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203516 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Matt Arsenault 2014-03-11 00:01:31 +00:00
parent 60616b61dc
commit cc1240ee1b

View File

@ -605,8 +605,8 @@ SDValue AMDGPUTargetLowering::SplitVectorLoad(const SDValue &Op,
MemEltVT, Load->isVolatile(), Load->isNonTemporal(),
Load->getAlignment()));
}
return DAG.getNode(ISD::BUILD_VECTOR, SL, Op.getValueType(), &Loads[0],
Loads.size());
return DAG.getNode(ISD::BUILD_VECTOR, SL, Op.getValueType(),
Loads.data(), Loads.size());
}
SDValue AMDGPUTargetLowering::MergeVectorStore(const SDValue &Op,