Try to fix the msvc build.

llvm-svn: 210636
This commit is contained in:
Rafael Espindola 2014-06-11 04:41:37 +00:00
parent 181adb5f57
commit ace0080a4a
1 changed files with 2 additions and 1 deletions

View File

@ -245,7 +245,8 @@ AMDGPUTargetLowering::AMDGPUTargetLowering(TargetMachine &TM) :
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);
}