[llvm] r319240 - Fix VS2017 narrowing conversion warning. NFCI
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 28 14:32:43 PST 2017
Author: rksimon
Date: Tue Nov 28 14:32:43 2017
New Revision: 319240
URL: http://llvm.org/viewvc/llvm-project?rev=319240&view=rev
Log:
Fix VS2017 narrowing conversion warning. NFCI
Modified:
llvm/trunk/lib/Target/AArch64/AArch64LegalizerInfo.cpp
Modified: llvm/trunk/lib/Target/AArch64/AArch64LegalizerInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/AArch64LegalizerInfo.cpp?rev=319240&r1=319239&r2=319240&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64LegalizerInfo.cpp (original)
+++ llvm/trunk/lib/Target/AArch64/AArch64LegalizerInfo.cpp Tue Nov 28 14:32:43 2017
@@ -355,7 +355,7 @@ AArch64LegalizerInfo::AArch64LegalizerIn
setAction({G_ATOMIC_CMPXCHG, Ty}, Legal);
setAction({G_ATOMIC_CMPXCHG, 1, p0}, Legal);
- for (auto Op :
+ for (unsigned Op :
{G_ATOMICRMW_XCHG, G_ATOMICRMW_ADD, G_ATOMICRMW_SUB, G_ATOMICRMW_AND,
G_ATOMICRMW_OR, G_ATOMICRMW_XOR, G_ATOMICRMW_MIN, G_ATOMICRMW_MAX,
G_ATOMICRMW_UMIN, G_ATOMICRMW_UMAX}) {
More information about the llvm-commits
mailing list