[llvm] r205458 - Make a few more range-based loops use explicit types.
Jim Grosbach
grosbach at apple.com
Wed Apr 2 13:21:23 PDT 2014
Author: grosbach
Date: Wed Apr 2 15:21:22 2014
New Revision: 205458
URL: http://llvm.org/viewvc/llvm-project?rev=205458&view=rev
Log:
Make a few more range-based loops use explicit types.
No functional change.
Modified:
llvm/trunk/lib/Target/ARM64/ARM64CleanupLocalDynamicTLSPass.cpp
llvm/trunk/lib/Target/ARM64/ARM64ISelLowering.cpp
Modified: llvm/trunk/lib/Target/ARM64/ARM64CleanupLocalDynamicTLSPass.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM64/ARM64CleanupLocalDynamicTLSPass.cpp?rev=205458&r1=205457&r2=205458&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM64/ARM64CleanupLocalDynamicTLSPass.cpp (original)
+++ llvm/trunk/lib/Target/ARM64/ARM64CleanupLocalDynamicTLSPass.cpp Wed Apr 2 15:21:22 2014
@@ -80,7 +80,7 @@ struct LDTLSCleanup : public MachineFunc
}
// Visit the children of this block in the dominator tree.
- for (auto N : *Node) {
+ for (MachineDomTreeNode *N : *Node) {
Changed |= VisitNode(N, TLSBaseAddrReg);
}
Modified: llvm/trunk/lib/Target/ARM64/ARM64ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM64/ARM64ISelLowering.cpp?rev=205458&r1=205457&r2=205458&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM64/ARM64ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/ARM64/ARM64ISelLowering.cpp Wed Apr 2 15:21:22 2014
@@ -4640,7 +4640,7 @@ static SDValue GenerateTBL(SDValue Op, A
unsigned BytesPerElt = EltVT.getSizeInBits() / 8;
SmallVector<SDValue, 8> TBLMask;
- for (auto Val : ShuffleMask) {
+ for (int Val : ShuffleMask) {
for (unsigned Byte = 0; Byte < BytesPerElt; ++Byte) {
unsigned Offset = Byte + Val * BytesPerElt;
TBLMask.push_back(DAG.getConstant(Offset, MVT::i32));
More information about the llvm-commits
mailing list