[llvm] r210636 - Try to fix the msvc build.

Rafael Espindola rafael.espindola at gmail.com
Tue Jun 10 21:41:38 PDT 2014


Author: rafael
Date: Tue Jun 10 23:41:37 2014
New Revision: 210636

URL: http://llvm.org/viewvc/llvm-project?rev=210636&view=rev
Log:
Try to fix the msvc build.

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=210636&r1=210635&r2=210636&view=diff
==============================================================================
--- llvm/trunk/lib/Target/R600/AMDGPUISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/R600/AMDGPUISelLowering.cpp Tue Jun 10 23:41:37 2014
@@ -245,7 +245,8 @@ AMDGPUTargetLowering::AMDGPUTargetLoweri
   if (!Subtarget->hasBCNT(64))
     setOperationAction(ISD::CTPOP, MVT::i64, Expand);
 
-  for (MVT VT : { MVT::i32, MVT::i64 }) {
+  MVT VTs[] = { MVT::i32, MVT::i64 };
+  for (MVT VT : VTs) {
     setOperationAction(ISD::CTTZ, VT, Expand);
     setOperationAction(ISD::CTLZ, VT, Expand);
   }





More information about the llvm-commits mailing list