[llvm] r203516 - Use .data() instead of &x[0]
Matt Arsenault
Matthew.Arsenault at amd.com
Mon Mar 10 17:01:31 PDT 2014
Author: arsenm
Date: Mon Mar 10 19:01:31 2014
New Revision: 203516
URL: http://llvm.org/viewvc/llvm-project?rev=203516&view=rev
Log:
Use .data() instead of &x[0]
Modified:
llvm/trunk/lib/Target/R600/AMDGPUISelLowering.cpp
Modified: llvm/trunk/lib/Target/R600/AMDGPUISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/R600/AMDGPUISelLowering.cpp?rev=203516&r1=203515&r2=203516&view=diff
==============================================================================
--- llvm/trunk/lib/Target/R600/AMDGPUISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/R600/AMDGPUISelLowering.cpp Mon Mar 10 19:01:31 2014
@@ -605,8 +605,8 @@ SDValue AMDGPUTargetLowering::SplitVecto
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,
More information about the llvm-commits
mailing list