diff --git a/lib/Target/ARM64/ARM64CleanupLocalDynamicTLSPass.cpp b/lib/Target/ARM64/ARM64CleanupLocalDynamicTLSPass.cpp index feeefdbe606..e3f82487518 100644 --- a/lib/Target/ARM64/ARM64CleanupLocalDynamicTLSPass.cpp +++ b/lib/Target/ARM64/ARM64CleanupLocalDynamicTLSPass.cpp @@ -80,7 +80,7 @@ struct LDTLSCleanup : public MachineFunctionPass { } // Visit the children of this block in the dominator tree. - for (auto N : *Node) { + for (MachineDomTreeNode *N : *Node) { Changed |= VisitNode(N, TLSBaseAddrReg); } diff --git a/lib/Target/ARM64/ARM64ISelLowering.cpp b/lib/Target/ARM64/ARM64ISelLowering.cpp index dc14c7e1a87..956c57a6495 100644 --- a/lib/Target/ARM64/ARM64ISelLowering.cpp +++ b/lib/Target/ARM64/ARM64ISelLowering.cpp @@ -4640,7 +4640,7 @@ static SDValue GenerateTBL(SDValue Op, ArrayRef ShuffleMask, unsigned BytesPerElt = EltVT.getSizeInBits() / 8; SmallVector 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));