OSDN Git Service

[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@316639 91177308-0d34-0410-b5e6-96231b3b80d8

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);