Updated.
[oota-llvm.git] / lib / Target / MRegisterInfo.cpp
index 7caaae9d4fac3dd8aa9d480860c77763e09c4389..08039208fe80edbc1f0aef3bb87c1a0231af22be 100644 (file)
@@ -41,7 +41,7 @@ BitVector MRegisterInfo::getAllocatableSet(MachineFunction &MF) const {
     const TargetRegisterClass *RC = *I;
     for (TargetRegisterClass::iterator I = RC->allocation_order_begin(MF),
            E = RC->allocation_order_end(MF); I != E; ++I)
-      Allocatable[*I] = true;
+      Allocatable.set(*I);
   }
   return Allocatable;
 }