[X86] Use correct type for return value of ComputeAvailableFeatures in the AsmParser...
authorCraig Topper <craig.topper@intel.com>
Thu, 26 Oct 2017 06:46:38 +0000 (06:46 +0000)
committerCraig Topper <craig.topper@intel.com>
Thu, 26 Oct 2017 06:46:38 +0000 (06:46 +0000)
There aren't enough used bits to make this a functional change, but we should fix it for consistency.

llvm-svn: 316639

llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp

index 0d211c4..896c50a 100644 (file)
@@ -909,7 +909,7 @@ private:
     MCSubtargetInfo &STI = copySTI();
     FeatureBitset AllModes({X86::Mode64Bit, X86::Mode32Bit, X86::Mode16Bit});
     FeatureBitset OldMode = STI.getFeatureBits() & AllModes;
-    unsigned FB = ComputeAvailableFeatures(
+    uint64_t FB = ComputeAvailableFeatures(
       STI.ToggleFeature(OldMode.flip(mode)));
     setAvailableFeatures(FB);